Skip to content

Instantly share code, notes, and snippets.

View creativetorch's full-sized avatar

Rich creativetorch

View GitHub Profile
@creativetorch
creativetorch / Hide-email-on-webpage-js
Created December 31, 2015 13:34
Hide email address on webpage with small javascript
<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>