email obfuscation javascript
Monday, February 4th, 2008<script> var ermail = "moc.liamg@lairetamciteneg"; var ungarbled = "mailto:"; for( i = ermail.length-1; i >= 0; i-- ) { ungarbled += ermail[i]; } document.getElementById('contact').href = ungarbled; </script>
If you hate spam and dont want your email address from being harvesting via some crawler. why try and obfuscate your email using some simple javascript. this script simply reverses the order of a string which contains your email in reverse. It then looks for a link with an id of “contact” and replaces the href attribute with your email address.

