Sunday 15 August 2010

html - Is there a way to tell if an end user will be able to handle links? -


So if you want to link to a phone number, then you do something like

  & Lt; A href = "tele: 18005555555" & gt; Click to Call & lt; / A & gt;   

This is usually used on mobile websites and is receiving traction on desktop sites (I think thanks to Skype on a large scale.) Although some computers / devices support it Are not able to. Is there a way to tell if a user can use a tail link?

The solution may be either server side or client side, but I think it should be client side.

and you can get some information, but as many have said, there really are no Not a reliable way to find out the device's ability to make a call Finally, there may be a desktop, but it is able to call it based on the software that they have installed (or even Their OS capabilities too).

In the interest of providing the best experience, you should include the Tele: link it will give everyone the opportunity to dial the number, if they can handle it, you can use CSS It can be used to see less links such as non Tele: reducing potential confusion for supported browsers / OS. Users who want to call the number will choose it or still touch it (in hopes of copying the number) and either activate the link (in the touch scenario) or hand (in the muizing scenarios) The goal will help to achieve the goal faster.

As a separate, the white location: nowrap is the tele: link is always a good idea :-) Put the numbers in a row so that the hyphen Do not allow it to break.

  a [href = = tel:] {white-space: nowrap; }    

No comments:

Post a Comment