Thursday, 7 November 2013

Click-to-call format detection in Mobile Phone browsers

In Mobile browsers (Safari, Opera, Chrome, IE etc) supports for 'click-to-call' number format detection  isn't that accurate. You will face  plenty of issues like invalid numbers get selected, like street addresses, ISBN numbers, and different types of numeric values that aren't phone numbers.

In order to avoid these kind of issues, it is necessary to add the following meta tag into the header section of your HTML page:

<meta name="format-detection" content="telephone=no">

This meta tag will help you control how to handle numbers using the tel or the sms scheme in the href attribute:
<a href="tel:1112223333">Call us at 111-222-3333</a>
<a href="sms:1112223333?body=yoursmsmessage">

Hope, you enjoyed this Post.

No comments:

Post a Comment