Re: Problem With Web Site E-Mail

by "Art Zoller Wagner" <art(at)zollerwagner.com>

 Date:  Sat, 15 Mar 2003 23:20:26 -0500
 To:  "Paul Roberts" <hwg(at)roberts200025.freeserve.co.uk>,
"Dusty" <designsbydusty(at)tiadon.com>
 Cc:  <camilton(at)hauntedhalloweencastle.com>, <hwg-basics(at)hwg.org>
 References:  home dfyh laptop1
  todo: View Thread, Original
Hi,

I've been encoding my site email address as Paul suggested. But I put it in
a variable in a JavaScript file, which each page gets via a line like:

<script type="text/JavaScript" language="JavaScript"
src="scripts/siteScripts.js"></script>

This file is downloaded to the browser, I think, but it would take a pretty
hardy soul to hunt it up and decode my email.

Then in the page, wherever I want my email to appear, I use JavaScript to do
document.write(), and call in that site email value.

The viewer will see what appears to be the email address, the send an email
function works, but the address is not really present in the page, so it
can't be spidered. If you do "view source"  you'll just see my
document.write script, without the variable. (I'm quite open to hearing
otherwise, but that's the way I understand this to be working.)

The downside includes a bit more processing and download time, and the fact
that those not enabling JS won't see the email link. I use <noscript> to
alert these non-enablers of that problem.

It's to be working for me.

best wishes, Art

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA