Pete wrote

I made it as simple as this :

<html>
<head>
<script>
function displayMail(doc, prefix, display) {
doc.write("<a href=\"mailto:"; + prefix + "@" + "mydomain.com\">" + display + "</a>");
}
</script>
</head>
<body>
<p>In case you want to <script>displayMail(this.document, "peter", "e-mail")</script> me...</p>
</body>
</html>


Works for me...

Pete


Simple and sweet - for javascript capable browsers, which probably covers most visitors to many sites; and text browsing "uebergeeks" can probably figure out the email address by viewing the html source. So this strikes me as quite effective for many situations.

An additional technique I've used for allowing email from a web page is to create and use a special throw-away address, which aliases or forwards to my real address. Since this special address is really only meant to make initial contact, I can safely replace it with another one, once spam gets to be a problem on the first one. People who make contact this way, then get a reply from me with my real email.

...Niels


_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

Reply via email to