Home >Web Front-end >H5 Tutorial >How to realize the one-click direct calling effect of the phone number in the web page_With examples_html5 tutorial skills

How to realize the one-click direct calling effect of the phone number in the web page_With examples_html5 tutorial skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 15:51:551580browse

How to realize the one-click direct calling effect from the phone number in the webpage_with example

Question:

When opening the website through a mobile phone, I hope that by clicking on the phone number, the outgoing menu will pop up.

Method:

Use the tel attribute of the hyperlink, as follows:

Note: When embedding a website into WeChat, some special Android phones may not be able to call out the menu. This is because the QQ browser embedded in WeChat may have certain settings that block it. By jumping to the page Add #mp.weixin.qq.com after the url to solve the problem, for example:

web/about.html was rewritten as web/about.html#mp.weixin.qq.com

How to achieve the one-click direct calling effect with the phone number in the above web page_The attached example is all the content shared by the editor. I hope it can give you a reference, and I hope you will support Script House more.

Source address: http://www.cnblogs.com/zhanghj405/p/5279508.html

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