If I can find the proper command to call the ‘mailto’ function,
would the following be an easy way to hide the email contact
address from web spammers?
Or do the spammers look into the <head> section also?
[code=php]
<html>
<head>
<title>Email Hider</title>
<script type=”text/javascript”>
var EmailList = new Array();
EmailList[0] = ‘mailto://[email protected]’;
EmailList[1] = ‘mailto://[email protected]’;
EmailList[2] = ‘mailto://[email protected]’;
function ShowEmail(item) {
alert(EmailList[item]);
// some command here to do
// <a href=”mailto://[email protected]”>[email protected]</a>
// function instead of ALERT?
}
</script>
</head>
<body>
Email Spammer Hider<p />
Email me at: <a href=”#” onClick=”ShowEmail(0)”>[email protected]</a>
<br /> or: <a href=”#” onClick=”ShowEmail(1)”>[email protected]</a>
<br /> or: <a href=”#” onClick=”ShowEmail(2)”>[email protected]</a>
</body>
</html>