Jump to content

Recommended Posts

Posted

This script is from Bravenet's Tips and Tricks archive. As has been noted before, if user's have javascript disabled on their end, it won't do you much good. There are probably better alternatives, but thought I'd throw it out here anyway, as there have been several questions lately!!

 

Tired of getting junk email?

 

Here is a handy script that you can add to your webpage to hide your email address from email robots (harvesters). Simply modify the address, domain and extension in the script below. Then paste it into your web pages anywhere you wish to have your email address appear on the page. Email Harvesters are then unable to read your email address - saving you from spam!

 

 

<script LANGUAGE="javascript">

var first = 'ma';

var second = 'il';

var third = 'to:';

 

// example: info

var address = 'tips';

 

// example: hotmail

var domain = 'bravenet';

 

var ext = 'com';

document.write('<a href="');

document.write(first+second+third);

document.write(address);

document.write('@');

document.write(domain);

document.write('.');

document.write(ext);

document.write('">');

document.write('Email Me!</a>');

</script>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...