seanpowell
asked on
modify tel attribute with css media query
Hi - we have the following in a responsive email:
<a href="tel:1-xxx-xxx-xxxx"> 1-xxx-xxx- xxxx</a>
Works great, but folks getting the email through their desktop outlook client get an "Access Denied" popup. Is there a way to have the tel protocol only display using media queries?
Thanks!
<a href="tel:1-xxx-xxx-xxxx">
Works great, but folks getting the email through their desktop outlook client get an "Access Denied" popup. Is there a way to have the tel protocol only display using media queries?
Thanks!
For an email, I think you are best to keep as normal text. Phones typically can distinguish the format of your number and create the link automatically.
Use a conditioned script to assign different attributes on different media.
Try:
jQuery(".CLASSNAME").attr( "href","CO NCRETE_ATT RIBUTE_BAS ED_ON_MEDI A_T5YPE");
Try:
jQuery(".CLASSNAME").attr(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks padas - much appreciated!
ASKER
@ HagayMandel - sorry, can't use scripting in an email and as such required a css solution. Thanks for taking the time!