Hide your Email Address from Spammers with a Simple JavaScript

Javascripts to hide email addresses from spammers have been around for a while but perhaps you missed this one. I have been using it more and more for my client’s HTML-based websites. If the email address is:, most websites use: That line of basic HTML is easily harvested by spambots. Within a few weeks, the spam will start trickling in. After a few months, there will be a flood of annoying spam emails. What can you do? Start with a fresh email address and use this small JavaScript: