Home  >  Article  >  Web Front-end  >  Sample code for automatically dialing or saving phone calls when clicking on a link on a mobile webpage_javascript skills

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

WBOY
WBOYOriginal
2016-05-16 16:39:311968browse

Call via the web

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

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;9c5141786c40654b18e147399a3a897fMake a call5db79b134e9f6b82c0b36e0489ee08ed

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

Writing like this is not compatible with IOS

Statement:
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