PDA

View Full Version : Mailto:


tufanocak
01-03-2003, 12:10 PM
<A HREF="javascript:location='mailto:blabla@bla.com?SUBJECT=Test&BODY='+escape(location.href)">send email to blabla</A>


With the code it opens a new page with a string on it.
How can we make it work that it does not open a new page with a string on it?

piz
01-03-2003, 12:29 PM
<script>
document.write('<A HREF="mailto:blabla@bla.com?SUBJECT=Test&BODY='+escape(location.href)+'">send email to blabla</A>');
</script>

Saludo, piz

beetle
01-03-2003, 04:04 PM
How about using this (http://www.webreference.com/js/column70/3.html)?