Created
December 31, 2015 13:34
-
-
Save creativetorch/33d98953526c4c71f784 to your computer and use it in GitHub Desktop.
Hide email address on webpage with small javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" language="JavaScript">// <![CDATA[ | |
var userid = "user"; | |
var hostid = "host.com"; | |
var link = userid + "@" + hostid; | |
document.write("<a hre" + "f=ma" + "ilto:" + userid + "@" + hostid + ">" + link + "</a>"); | |
// ]]></script> | |
<noscript>user-{{at}}-host.com</noscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment