How to Mask an Email Addressby Contributor
Open WordPad, Notepad, an HTML editor or some other text editor and open a new blank document. Be sure you don't use Microsoft Word, it doesn't work too well with web programming languages.
Add this block of code to your document: <!-- Begin user = "yourname"; site = "yoursite.com"; document.write('<a href=\"mailto:' + user + '@' + site + '\">'); document.write('email me'+'</a>'); // End -->
Delete "yourname" and replace it with the user name for your email address. If your email address were email@example.com, then you'd replace "yourname" with "john."
Replace "yoursite" with the domain for your email address. Using our example, firstname.lastname@example.org, you would delete "yoursite" and replace it with "abc123.com."