Forum Moderators: open

Message Too Old, No Replies

Send Page By Mail

         

Aljaz

8:02 am on Aug 12, 2003 (gmt 0)



Hi,

Well...I would like to send page by mail, using JavaScript,let say when user cliks on the submit button.

So far this is what I have :

<html>
<title>Test</title>
<script>
function sendPageByMail(str)
{
document.location.href=
"mailto:aljaz.mali@cetrtapot.si?subject=" +
document.title + "&body=" + str;
}
</script>
<BODY>
<form>
<input type=button name="button1" value="Send Page By
Mail" onclick="javascript:sendPageByMail(document.body.outerHTML);">
</form>
<H1>Bla bla</H1>
</BODY>
</html>

Problem :
Using this I only get html content from <BODY> tag to
</BODY> tag. But I would like to get content from top to
bottom ( from <HTML> tag to </HTML> tag).

Thank you all in advance

korkus2000

7:19 pm on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Aljaz,

What browsers are you shooting for on this, and does it work this way on the ones that accept this?