Forum Moderators: phranque

Message Too Old, No Replies

Click to call modification required

         

Gemini23

12:22 am on Feb 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi,

I want to use a 'click to call link' on my website for mobile users which does work with the syntax of:
<a href="tel:0000000000"">00000000</a>

The '0' are replaced with your actual telephone number!

However, while all works well with a mobile when the link is clicked, when using a desktop mouse or laptop it then shows as a broken link url.

Anyone any suggestions how to disable the 'click' from a desktop or laptop? Or alternatively how to ENABLE for mobile browsers only?

Thanks... :)

watchtower101

9:27 am on Feb 4, 2011 (gmt 0)

10+ Year Member



I have found that just writing the telephone number as text without any code causes it to work natively as click to call on my iphone.

Have not tested android or other phones.

I think most users on a laptop or desktop will just read the number and dial their phones, so no need for the syntax there.

Also, there's a typo in your syntax. Should be
<a href="tel:0000000000">00000000</a>

Gemini23

10:33 am on Feb 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks watchtower101.. I will try just the number - oops with the typo.. it isn't there on my website.. just messed up when I copied it across...

Just tested the 'click to call' when just entering the telephone number - and that works on my 'android' HTC... I wonder if that is a new feature as I am sure that it never used to work on mobiles.. I wonder if anyone can confirm that it works on Safari?

Thanks

watchtower101

12:11 am on Mar 4, 2011 (gmt 0)

10+ Year Member



Seems to work fine on Safari on the Iphone.