Easy To Use Free Webmaster Resource With Free Webmaster Tools, and Tutorials.

webmaster resource and website promotion


Navigation - HOME | WEBMASTER TUTORIALS | WEBMASTER TOOLS | PROFESSIONAL SERVICES

How to hide your email from spam bots.

Use A Clickable JavaScript For Your Email Address
You will need two scripts.  The first breaks down your email address into three coded parts [ who @ url ] and defines how it will be printed.  It can be placed anywhere on the page, but t is recomended to put it in the header.  Copy the below script.  Then just change info to the name that you want to appear before @ and then change dwhs.com to the domain name that you want to appear after @.

 

<script language="JavaScript" type="text/javascript">
var who = "info";

var url = "dwhs.com";

function print_mail_to_link() {

document.write('<font size="-1" face="arial" color="blue">');

document.write("<A HREF=\"mailto");

document.write(":" + who + "@");

document.write(url + "\">" + who + "@" + url + "<\/a>");

document.write('</font>');

}

</script>

Then copy the following script and place it exactly where you want your email address to appear in your web page.
 

<script language="JavaScript" type="text/javascript">print_mail_to_link()</script>

Unfortunately, this method had a minor problem or drawback - the person reading your web page must have a Java enabled web browser to see your email address. 
If Java is disabled, they they can not see your email address.

 

Search Query

 

contact us | webmaster forum | web hosting support | webmaster links | general links

 

 

 

 

© Copyright 2002-2005. All rights reserved.
Easy Website Promotion
| DWHS Web Hosting | Verocom Communications