I'm trying to adapt a 'spam proof' javascript email link to be used with a mailto: form.
The javascript function is this:
<script language="JavaScript">
<!--
function mail()
{
var name="name";
var domain="domain.com";
document.write("'mailto:' + name + '@' + domain'");
}
-->
</script>
and the form begins:
<form method="post" action="javascript:mail()" >
This just returns 'mailto:' + name + '@' + domain' in the browser window, and doesn't mail anything.
I know mailto isn't the best way to do this, but the specification given is that it has to be a mailto form, and use the code to spam proof the email address.
If anyone could give me some suggestions on how to accomplish this I'd really appreciate it. I believe document.write isn't the correct thing to be using, but I am unsure what to replace it with.
Thanks very much for any help.


Reply With Quote
.

Bookmarks