Spam-proof email with javascript


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. <!-- spam-proof mailto!!!
  3. var username = "info";
  4. var hostname = "domain.com.au";
  5. var linktext = username + "@" + hostname;
  6. document.write("<a href=" + "mail" + "to:" + username +
  7. "@" + hostname + ">" + linktext + "</a>")
  8. //-->
  9. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.