natimage Posted February 11, 2004 Posted February 11, 2004 This script is from Bravenet's Tips and Tricks archive. As has been noted before, if user's have javascript disabled on their end, it won't do you much good. There are probably better alternatives, but thought I'd throw it out here anyway, as there have been several questions lately!! Tired of getting junk email? Here is a handy script that you can add to your webpage to hide your email address from email robots (harvesters). Simply modify the address, domain and extension in the script below. Then paste it into your web pages anywhere you wish to have your email address appear on the page. Email Harvesters are then unable to read your email address - saving you from spam! <script LANGUAGE="javascript"> var first = 'ma'; var second = 'il'; var third = 'to:'; // example: info var address = 'tips'; // example: hotmail var domain = 'bravenet'; var ext = 'com'; document.write('<a href="'); document.write(first+second+third); document.write(address); document.write('@'); document.write(domain); document.write('.'); document.write(ext); document.write('">'); document.write('Email Me!</a>'); </script> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.