Email harvesting is a real problem nowadays; publishing an email address on a web page means exposing it to automated email collection softwares. Once it's been collected, there no way of getting rid of spam.The best way to avoid this is to obfuscate and encode email addresses; this simple JavaScript does exactly that. It splits an address in six different parts, so that bots are not able to recognize it, and it also encode the @ symbol and the . (dot) using ASCII codes, just to make it harder for bots to decode it. Even if the email harvesting software can read JavaScript and put the different parts of the address together, it would obtain an useless text like this: my-email-address@my-domain-name.com instead of myaddress@mydomain.com.
















This script uses regular expressions to check that a string contains a valid email address. Note that it won't catch all invalid emails, like most similar scripts. However, for most intents and purposes, this script should serve its purpose well, by rejecting common email typos while leaving room for obscure yet valid emails to pass.















This script is an easy way to copy and email text that is on a web page. You can set this up as a Favorites item in Internet Explorer to make it simply to be able to do the emailing! Just highlight text on a page and then click the favorites link. The hightlighted text will be placed in an email from your default mail program, ready for you to add a name and send!






























Prevent e-mail link harvesting by spammer's robots. Nothing is displayed in the file where this script is used, other than an empty span element. The mailto link is added dynamically, and will not show up even when you "View Source".


















Vietnamese














