Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Hiding email addresses
- From: petersen at ma.medias.ne.jp (Scott Petersen)
- Subject: [Javascript] Hiding email addresses
- Date: Thu Sep 28 01:13:25 2006
In order to hide email addresses from spam address collectors, I have come
up with the following:
<script type="text/javascript">
// <![CDATA[
var names = new Array("BigBoy","LittleBoy"
,"petersen","Frenchie","hailMary");
var domains = new
Array("someDomain.com","someDomain.ne.jp","ma.medias.ne.jp","mars.com");
function mailsomething(x) {
name=names[x];
domain=domains[x];
location.href='mailto:'+name+'@'+domain;
}
// ]]>
</script>
</head>
<body>
<p><a href="#" onclick="mailsomething(0)">Send Mail</a></p>
</body>
This should send mail to BigBoy@xxxxxxxxxxxxxxx My question is: Does this
really slow down the address collectors?
My thinking is it would since the two parts of the address are not
contiguous, though would not be hard to recover with a half-way
sophisticated robot-collector.
Thank you.
- Follow-Ups:
- [Javascript] Hiding email addresses
- From: David Dorward
- [Javascript] Hiding email addresses
- Prev by Date: [[Javascript]] width and height of an element [solved]
- Next by Date: [Javascript] Hiding email addresses
- Previous by thread: [[Javascript]] width and height of an element
- Next by thread: [Javascript] Hiding email addresses
- Index(es):