Protect Your Email Address from Spammers
The following Javascript is a good way to help prevent spammers from grabbing the email addresses from your webpages.
The following code must be added to the head section of each webpage that you'd like to use this script in.
<head>
<script type="text/javascript">
function mailto(domain,user)
{
document.location.href = "mailto:" + user + "@" + domain;
}
</script>
</head>
After the above code has been added to the head section, you then gain the ability to use the following from anywhere within the body section of your HTML source code.
<a href="javascript:mailto('example.com','daniel')">daniel 'at' example.com</a>
The 'example.com' section of this code will need to be replaced with your email providers domain, and the 'daniel' section will need to be replaced with the username that you have for that particular email account.
What this Javascript actually does is takes these two pieces of data and then parses them into your full email address after you've clicked on the mailto link.
The example Javascript would parse daniel@example.com in this case, once the link was clicked.
Spiders and robots that search your website won't see the code as an email address that they can gather and so your email should be safe from spiders and robots!