Closed Thread Icon

Preserved Topic: Javascript for mailto: (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18298" title="Pages that link to Preserved Topic: Javascript for mailto: (Page 1 of 1)" rel="nofollow" >Preserved Topic: Javascript for mailto: <span class="small">(Page 1 of 1)</span>\

 
viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 05-28-2002 05:59

I need something like:
onClick="JavaScript:mailto:name@domain.com;return false"
Is it possible? (obviously that the above instruction doesn't work at all)

What I mean is that I need a way to call name@domain.com (as if I was using <a href="mailto:name@domain.com"> but using a javascript function. Is it possible?

Thanks.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-28-2002 06:34

I imagine the statement

location.href = 'mailto:name@domain.com';

would work.

viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 05-28-2002 07:08

Thanks a lot. It worked fine.

« BackwardsOnwards »

Show Forum Drop Down Menu