Spammers are evil people with crafty tools. Their nefarious 'bots are constantly spidering the web, looking for injudiciously displayed email addresses. Post your email address on a board on one day, you can count on 200 offers for cut rate "\/!agra" the next. What is the conscientious web master to do?!?
Well, the key is to understand the limitations of the nefarious 'bots. You see, they can only parse the strings that are actually written on your web page. This is key because you can display an email address without actually putting it explicitely on your web page. Consider this snippet:
document.mymail = emailacct + '@' + emaildomain + '.' + emailtld;
document.write("<a href=\"mailto:" + document.mymail + "\">");
document.write(document.mymail + "</a>;");
So, given a top level domain (e.g. "net"), a domain (e.g. "ziemecki"), and an account (e.g. "nosuch"), this function will first reconstruct the email address into the standard format, and assign it to a variable called "document.mymail". The two "document.write" calls then will output the eMail address sandwiched within an HTML "mailto" string. To call it, you would put something like this on your web page:
What the site reader will see is something like this:
For problems or questions regarding this web site send email to firstname.lastname@example.org
Doesn't fighting spam make you feel good inside?