Providing your email address as is in an HTML page can invite many unwanted spam messages. This is because there are many email extractor programs that can extract your email address from a webpage. This simple script can be used to prevent that.
<html>
<head>
<title>Email Address Protector</title>
<script type="text/javascript">
<!--
function showEmail(user, domain, tld, title){
var emailId = user + "\u0040" + domain + "." + tld;
var url = "mailto:" + emailId;
if(!title){
title = emailId;
}
document.write("<a href='" + url + "'>" + title + "</a>");
}
//-->
</script>
</head>
<body>
You can use the function as show below<br/>
my email id is <script type="text/javascript">showEmail('contact', 'weberdev', 'com')</script><br/>
or Click <script type="text/javascript">showEmail('contact', 'weberdev', 'com', 'here')</script> to mail me
</body>
</html>