Home > Web Front-end > JS Tutorial > body text

Sample code for automatically dialing or saving phone calls when clicking on a link on a mobile webpage_javascript skills

WBOY
Release: 2016-05-16 16:39:31
Original
1975 people have browsed it

Call via the web

<a href=”tel://110 ”>拨打电话</a>
Copy after login

This method is supported by Symbian, Android and iPhone

Remember to write it like this, don’t write your own method and then call it

For example;Make a call

function phone(date){
window.location.href = 'tel://' + date;
}
Copy after login

Writing like this is not compatible with IOS

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!