How the send the contents of a dynamically generated page by email?

Nitesh Naveen

The document.body.innerText property contains the page contents, just use that in a mailto link as the body.

Here is an example to show how you can get the contents of the html. This works in Internet Explorer only though. I couldn't find an alternative in Netscape. Also there is some probs with the alignment of the text in the mailer...(Microsoft Outlook)

function mailDoc() {
line 1<br>
line 2<br>
line 3<br>
line 4<br>
line 5<br>
line 6<br><br>
<input type=button value="Mail Contents" onclick="mailDoc()">

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact