html call mobile phone call, text message function

  1. In the html head add:<meta name="format-detection" content="telephone=yes"/>
  2. Where you need to make a call: <lable>13366668888</label> <ahref="tel:13366668888">make a call When you click on the phone number on the page
    , the page will jump to the mobile phone call interface at this time, and attach the number to it, and click to dial.
  3. If you need to send a text message: <lable>13366668888</label> <a href="sms:13366668888">send a text message
  4. Usually, the mobile phone number we obtain comes from the mobile phone address book, so the mobile phone number in this place needs to be simply spliced. As for how to use H5 to obtain the mobile phone address book, we can check the HTML5+API. Of course, we can also directly create a new "Mobile App" in the Hbuilder software. Audio and video recording and playback, taking pictures, sharing WeChat, scanning codes (one-dimensional code, two-dimensional code) and other functions are also more convenient to use, but there are also some limitations, and some functions are not supported on some models of mobile phones.

Guess you like

Origin blog.csdn.net/TKP666/article/details/129358234