|
Hiding your email address
Why on earth would anyone want to hide their email address? Strange as it may seem, email selling is big business today, if you don't believe me, just ask anybody who has to contend with truck loads of sp@m everyday. One way that your email address can be used for this purpose is when email harvesters come and visit your site. They're like little robots spend their waking hours looking for email addresses in the form of mailto:joebloggs@ntlworld.ie The format is easily recognisable to you, isn't it? It's instantly recognizable to the harvesters too, and they can just lift it and bung it away for future use.
So, how do we hide it? Well, we don't hide it, we just make it a little more difficult for the harvesters to understand what it is. We can do this with the use of a small script like so:
<script language=javascript>
<!--
var contact = "Email Joe"
var email = "joebloggs"
var emailHost = "ntlworld.com"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".")
//-->
</script>
The only thing that you'll see on your webpage is
To use this script on your own website, simply substitute your own email address (the text highlighted in red) and your own domain name (the text highlighted in blue). Finally, you can customise the text link (the text highlighted in green) to 'Contact me here' or 'Email Me' or whatever you wish, then just paste the few lines of code on your page at the point where you want the text link to appear. Voilá. You can select and copy the required code below:
|