We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

Feb30th1712 on 01/20/08


Tagged

javascript html e-mail


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

arala22
mbcdg
yetanother
blackabee


hide email from spiders


Published in: JavaScript 


Hide your e-mail from spiders. Show and select on hover for user friendly reason. Read only to prevent accidental change.

  1. <form action="#" onsubmit="return false;">
  2. <input readonly value="Hover to see my E-mail" onmouseover="focus();select();value='F'+'o'+'o'+'@'+'b'+'a'+'r'+'.'+'c'+'o'+'m';" />
  3. </form>

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: Feb30th1712 on February 21, 2008

You need to login to post a comment.