[thelist] Mailto Question LATE REPLY

John C Bullas jcbullas at nildram.co.uk
Mon Nov 10 01:24:42 CST 2003


At 23:39 08/11/2003, Simon Willison wrote
>live4bacon at optonline.net wrote:
>
>>Hi all, I have a client that is tired of recieving spam to their
>>"info@" address, yet they still want a visitor to clicke a link and
>>have an e-mail open with a correct "To" address filled in for them.
>>Any suggestions on thwarting the spammers?

the function:

<script language="JavaScript">
<!--

var lhs = "antispamjavafailed";
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>

call it with this:

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

FB 



More information about the thelist mailing list