Obscure Email Script


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

This script stores the elements of the email address as JavaScript
variables and assembles them on the fly every time the page loads. The
page rendered looks the same to users, but the address never actually lives
in the page source code. It can be inserted inline.


Copy this code and paste it in your HTML
  1. <script language=javascript><!--
  2. var email = "kermitthefrog";
  3. var emailHost = "gmail.com";
  4. document.write(email + '@' + emailHost);
  5. //--></script>
  6.  
  7. If JavaScript is not working, the visitor will see nothing, though. This
  8. will take care of that:
  9.  
  10. <span id="kermit-email">kermitthefrog -at- gmail -dot- com</span>
  11. <script language=javascript><!--
  12. var email = "kermitthefrog";
  13. var emailHost = "gmail.com";
  14. document.getElementById('kermit-email').innerHTML = email + '@' +
  15. emailHost;
  16. //--></script>

URL: http://www.bluewallllc.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.