Forum Moderators: open
jsut a simple window open is all i want to do..
but the following isnt working
<a href="javascript:mailLink('this@that.com');>email</a>
js is
function mailLink(mailaddr){
var url = "../email.htm"; //?x=" + mailaddr
var newwin = window.open(url, "Email Form", "width=300,height=250,toolbar=false,locationbar=false,directories=false,status=true,menubar=false,scrollbars=false,resizable=false,copyhistory=false");
}
ignore the mailaddr bit, as i was hoping to open an asp page that would grab the mail address from the querystring.. but as i couldnt even get the first bit to work, i commented it out.
also tried with a non relative url, with no luck either.
i tried with and without doing the newin = ...
am i missing something blatant? this is usually the way with me ..
tia
nat
If this is the reason (only one I can think of) then I should make you aware that this may only stop some email harvesting bots but not all.
The only way to completely and utterly avoid keeping your email address from spambots on your site is to have your email address server side. That means you need to setup a contact form.
as it goes, i was doing the window.open to open up a little email form..
admitidly having the email address in the html to be passed to the meail form , is a bit pants, considering the spambottiness..
but i was somewhat rushed for time..
the initial plan was to have the email popup form as an asp page, that would get passed the email address in the querystring, so i could use the same form with all the email links on the site..
well that was the idea anyway..
thanks again all for the help
nat