If you don't know what this is or are not otherwise doing it, you should be aware that many of the bots (spiders) that visit your site are harvesting email addresses from your pages for spam email. To avoid this, most web sites will obfuscate (obscure) any email address they show on their pages, thereby rendering them unreadable by bots. But the trick is to successfully obfuscate the links while leaving them fully functional to actual visitors.
After experimenting with many methods over the years, here is what I've settled on (for now):
Most who use this method use the onClick event instead of the onMouseOver event. The problem with the onClick event is that when a user right-clicks the link and selects "Copy Shortcut", they wont get the shortcut unless they have already followed the link. However, I'm not sure the onMouseOver event would work either if the user navigates via the keyboard.
I'm interested to know what method(s) other people are using to obfuscate email addresses on their web sites.
riley
After experimenting with many methods over the years, here is what I've settled on (for now):
Code:
<a href="#" onMouseOver="this.href='mail'+'to:me'+'@'+'mydomain.com'">My Email</a>
I'm interested to know what method(s) other people are using to obfuscate email addresses on their web sites.
riley