Disable telephone anchor

I am developing a web application using PhoneGap that will be distributed to several mobile OS, including iOS.

When I create an application for iOS, numeric values ​​with at least 7 digits change to telephone bindings, to β€œfix” this I added the following event handler:

$( 'a[href^="tel"]' ).live( 'click', function() { return false; }); 

This code works fine except when I use jQuery Mobile, any idea why?

+4
source share
2 answers

Try adding this to your headline.

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

See How do I disable a phone number link in Mobile Safari?

+6
source

It really works well for me and in PhoneGap.

0
source

Source: https://habr.com/ru/post/1413201/


All Articles