Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put the content of a HTML page in a string

Status
Not open for further replies.

ani4

Technical User
Mar 14, 2002
27
FR
Is it possible to put in a string the content of an HTML page.

In fact I have a HTML page automatically generated, i want to include the content of it in the body of a mail....
I am not using CDont, just the parameters of mailto link

(a href=mailto:test@test.com?subject=THE_CONTENT_OF_THE_HTML PAGE)

Is it possible and how

thanks

damien
 
well if you want just the text in the body then you can get it by doing a document.body.innerText or if you wanted the HTML code as well then you could use document.body.innerHTML. Your method may present a problem, a large url length can sometimes cause problems in mailto links in certain versions of Outlook. You will experience problems as all the text or HTML is gonna end up
in that mailto url
 
thanks, It s all right, i will check for the problem with outlook..


thanks a lot


damien
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top