about this script

  • Thread starter Thread starter Ernie
  • Start date Start date
E

Ernie

How does this scrip work; do I have to change the info and
add my email address? Thanks see below:

'The below email address link is unretrieveable by spammer
robots. Simply update the variables with your email
information and relace your mailto: links with this
script.'


<script language="JavaScript"><!--
var name = "protected";
var domain = "cdrsoft.com";
document.write('<a href=\"mailto:' + name + '@' + domain
+ '\">');
document.write(name + '@' + domain + '</a>');
// --></script>
 
It "should" prevent spammers from reading the
e-mail address as there is no valid email address to read.

However, if visitors have javascript disabled, their
e-mail program won't have a valid address to
send the e-mail too when the click the link.


Yes you have to add your e-mail name and domain.
It would read like this:

<script language="JavaScript"><!--
var name = "emailname";
var domain = "yourdomain.com";
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain + '</a>');
// --></script>
 
Back
Top