Return to Snippet

Revision: 12026
at February 27, 2009 15:21 by Bluewall


Initial Code
<script language=javascript><!--
   var email = "kermitthefrog";
   var emailHost = "gmail.com";
   document.write(email + '@' + emailHost);
//--></script>

If JavaScript is not working, the visitor will see nothing, though. This
will take care of that:

<span id="kermit-email">kermitthefrog -at- gmail -dot- com</span>
<script language=javascript><!--
   var email = "kermitthefrog";
   var emailHost = "gmail.com";
   document.getElementById('kermit-email').innerHTML = email + '@' +
emailHost;
//--></script>

Initial URL
http://www.bluewallllc.com

Initial Description
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.

Initial Title
Obscure Email Script

Initial Tags
email

Initial Language
JavaScript