How To Prevent Spam Bots From Harvesting Your Email Address With JavaScript
The basic idea here is to encode your email address so it will not be easily harvested by robots crawling the Internet in search of email addresses. These robots are based on a script that searches for the “mailto:[email protected]” string (this example will probably be harvested, but it won’t do them any good since the email address is not valid).