Page is a not externally linkable
myrrh - 4:03 pm on Oct 7, 2012 (gmt 0)
Several searches on this topic found mostly entries several years old, so I thought I'd ask again.
To encrypt email addresses in web pages I use:
<script type="text/javascript">
<!--
function escramble(){
var a,b,c,d,e,f,g,h,i
a='<a href=\"mai'
b='abc'
c='\">'
a+='lto:'
b+='@'
e='</a>'
f=
b+='example.com'
g='<img src=\"'
h=''
i='\" alt="Email abc" border="0">'
if (f) d=f
else if (h) d=g+h+i
else d=b
document.write(a+b+c+d+e)
}
escramble()
//--></script>
This is quite cumbersome.
Is there a cleaner way to achieve the same thing?