Home >Web Front-end >JS Tutorial >Sample code for automatically dialing or saving phone calls when clicking on a link on a mobile webpage_javascript skills
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