Use javascript to protect email addresses

From Attie's Wiki
Jump to: navigation, search
<html>
<head>
<title>Test</title>
</head>
<body>
<div>
 
<!--
  You will need to change variables a and b to be the a@b of the email address.
  Copy between these comments into your page.
-->
 
<script>
var x = "&#64;";
var y = "&#109;&#97;&#105;";
var z = "&#108;&#116;&#111;";
 
var a = "attie";
var b = "attie.co.uk";
 
document.write('<a href="'+y+z+':'+a+x+b+'">Contact</a>');
</script>
 
<!-- End copy -->
 
</html>
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox