Forum Moderators: open
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