in IE I use 123-456-7...">

Disallow page opening in <a href= "https://stackoverflow.com/tel" rel="nofollow noreferrer"> in IE

I use

<a href="tel:123-456-7890">123-456-7890</a> 

on my website specifically for mobile devices, but it also appears in web browsers. Each browser did not open the page when clicking on it instead of IE.

Any solution to prevent the page from opening when this number is clicked in IE.

+3
source share
1 answer

Try the following:

<a href="#" value="tel:123-456-7890">123-456-7890</a> 

How you can use JS browser detection, see this step: http://www.webdeveloper.com/forum/showthread.php?t=210710 and then you can change the link in IE and save it in other browsers and mobile devices.

I am using something like this in WordPress:

global $is_IE;
if(!$is_IE){  
?><a href="tel:555-555" >555-555</a><?php
} else 
{ ?>555-555<?php }
+1

All Articles