I found this great tip that I wanted to pass on. Put an “email me” link on your website without leaving the email address exposed to spam bots. Copy the code that I’ve posted below and make the necessary changes.

<script language="javascript">
<!-- var contact = "Email Me"
var email = "webmaster"
var emailHost = "yoursite.com"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>")
//-->
</script>

Change “Email Me” to whatever you want the link to say. Change “webmaster” to the part of your email address before the @ sign. Change “yoursite.com” to the part after the @ sign. The script will splice it all together to make it look to your viewers exactly the same as if it were a normal mailto: link. Bots can’t see it though, so you won’t get tons of spam from it.

Credit Where Credit is Due: I got this tip from my favorite (now former) former TechTV personality Leo Laporte. He gave this tip recently on The Screen Savers.