[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

tia
cheryl

Mon Plaisir!!!

http://www.blazonry.com/javascript/js_hiding.php

Here's the code for the function:

<SCRIPT LANGUAGE="JavaScript">
<!--

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>");
}

//-->
</SCRIPT>

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">
print_mail_to_link()
</SCRIPT>

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

URL given looks "fine and dandy" otherwise

FB



More information about the thelist mailing list