Hi,
On one of my webapges where emails are links,I use some javascript instead of the usual i.e <a href="mailto:joe@bloggs.com"> , so to avoid spam email etc.
heres the alternative javascript for joe@bloggs.com
<a href='javascript:window.location="mai"+"lto:"+"joe"+"@"+"bloggs"+"."+"com";'
ONMOUSEOVER='window.status="mai"+"lto:"+"+"joe"+"@"+"bloggs"+"."+"com";'return false;'
ONMOUSEOUT='window.status="";return false;'>joe@bloggs.com</a>
on the webpage it looks like a normal email link, but you'll see the javascript on the status bar. My PROBLEM is, with Netscape 4.7, its fine, but IE 6+ it opens a blank page plus the email window. I don't want the blank page, I want it to stay on the relevant page. Can anyone suggest some more script to avoid this...i want it to be browser compatible...atleast with the popular ones NS and IE atleast. I have tried some scripts but its then either ok in NS and not in IE. I can't seem to win!
thanks,
2socks
On one of my webapges where emails are links,I use some javascript instead of the usual i.e <a href="mailto:joe@bloggs.com"> , so to avoid spam email etc.
heres the alternative javascript for joe@bloggs.com
<a href='javascript:window.location="mai"+"lto:"+"joe"+"@"+"bloggs"+"."+"com";'
ONMOUSEOVER='window.status="mai"+"lto:"+"+"joe"+"@"+"bloggs"+"."+"com";'return false;'
ONMOUSEOUT='window.status="";return false;'>joe@bloggs.com</a>
on the webpage it looks like a normal email link, but you'll see the javascript on the status bar. My PROBLEM is, with Netscape 4.7, its fine, but IE 6+ it opens a blank page plus the email window. I don't want the blank page, I want it to stay on the relevant page. Can anyone suggest some more script to avoid this...i want it to be browser compatible...atleast with the popular ones NS and IE atleast. I have tried some scripts but its then either ok in NS and not in IE. I can't seem to win!
thanks,
2socks