All,
Could someone please look at this and tell me what's wrong... the function works properly in FireFox but in IE onmouseover it replaces the innerHTML. So the original html:
at in**@test.com Thank you for your consideration.
becomes
at mailto:in**@test.com:?SUBJECT=Request for additional information - Package id : /*JS var*/ Thank you for your consideration.
I know the problem is the @ sign because if I remove it the function works properly, but even encoding it doesn’t seem to work I get the same issue.
Any Help would be appreciated Thanks in advance - CES
XXXXXXXXXXXXXXXXX
function mailTO(sender){
document.getElementById('id_' + sender).setAttribute("href", "mailto:info" + "@" + "test.com:?SUBJECT=Request for additional information - Package id : ");
}
<a id="id_emailMe2" class="noExpandNormal" href="#" onmouseover="mailTO('emailMe2')">info@test.com</a>