Created
March 7, 2009 20:03
-
-
Save bcalloway/75421 to your computer and use it in GitHub Desktop.
Hide email from spambots
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 language="JavaScript"> | |
<!-- | |
var name = "email"; | |
var domain = "mydomain.com"; | |
document.write('<a href=\"mailto:' + name + '@' + domain + '\">'); | |
document.write(name + '@' + domain + '</a>'); | |
//--> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment