Joke Collection Website - Public benefit messages - H5 paging arouses the mobile phone to make a call (dial)
H5 paging arouses the mobile phone to make a call (dial)
In the development of mobile phone pages, it is occasionally necessary to arouse the call function of users' mobile phones and call customer service. At this point, we can realize the calling function according to the following operations:
1)index.html is in < head >;; & lt/head & gt; Add this paragraph:
& ltmeta name = " format-detection " content = " telephone = yes "/& gt。
2) set the click event in 2)js:
Window.location.href =' Tel: 4000-000-000';
Or directly use:
& lta href= "Tel: 4000-000-000" > Call.
When sending SMS, you can set:
//Add content
window . location . href = ' SMS: 10086? Body= SMS content';
//Do not add content
window . location . href = ' SMS: 10086 ';
Or:
& lta href="sms: 10086 "> Send SMS.
& lta href= "SMS: 10086? Body = SMS content " > & lt/a & gt;
Article reference:/boa le _ h/article/details/108582436
- Related articles
- How to check the violation record with mobile phone?
- Will the registration time of Putonghua test be notified by SMS?
- My postal currency card opened online banking one month later, and was directly deducted 32. I know it's like a text message fee. Will I get a refund if I cancel?
- How to set the love privacy between light and night?
- Xiaomi's mobile phone can't find the keyboard for writing information.
- How does Sichuan Medical Insurance inquire whether the payment has been successful?
- Wedding planning wedding matters needing attention
- Can I pick up the post at home?
- What if the card of Shenzhouxing can't send a text message?
- Does Hengyang need home isolation for three days and three inspections?