Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable phone number linking in Mobile Safari?

Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page?

like image 647
benzado Avatar asked Oct 22 '08 15:10

benzado


People also ask

How do I hyperlink a phone number on my iPhone?

Add a link. Tap an object, text box, or selected text you want to turn into a link, then tap Link. to see Link. Tap Link To and choose a link type (Webpage, Email, Phone Number, Page or Bookmark).

How do I turn a phone number into a URL?

Href=tel: creates the call link. This tells the browser how to use the number. “Tel: 123-456-7890 “creates the HTML phone number. The number within the quotes is the number it will call.


1 Answers

This seems to be the right thing to do, according to the Safari HTML Reference:

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

If you disable this but still want telephone links, you can still use the "tel" URI scheme.

Here is the relevant page at Apple's Developer Library.

like image 95
lewinski Avatar answered Oct 20 '22 00:10

lewinski