Skip navigation

So for a site I am writing I needed an email me link on it, and I didnt want to be spamed, so I wrote a little javascript function, you might find this a helpful starting point for your own endevors:

function MakeNotSpamibleEmailAddress()
var part1=”jhekt”
var part2=”or”
var part3=”@”
var part4=”gmai”
var part5=””

document.write(“<a href=”+”mailto:”+part1+part2+part3+part4+part5+”>”+”Email Me”+”</a>”)
When I add CSS to my site I will use a similar function that use’s document.getElementById()



  1. Thanks Josh!
    That sure was useful!

  2. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: