[thelist] spambot & javascript

John C Bullas jcbullas at nildram.co.uk
Tue Sep 23 07:31:42 CDT 2003

At 13:21 23/09/2003, you wrote:
could someone please repost the code for thwarting email spambots - my
overanxious fingers accidentally hit the delete instead of save - or
possibly send it to me off list


Mon Plaisir!!!


Here's the code for the function:


var lhs = "blackhole";
var rhs = "fbr.nildram.co.uk";

function print_mail_to_link()
document.write("<A HREF=\"mailto");
document.write(":" + lhs + "@");
document.write(rhs + "\">" + lhs + "@" + rhs + "<\/a>");


Here's the code to call the function:
This code goes where you want your mailto:address to appear on the page.

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">

works pretty well, the email addresses are NOT visible UNLESS the page is 
delivered by a browser

URL given looks "fine and dandy" otherwise


More information about the thelist mailing list