otaining html text using JavaScript

wxdqz

New Member
Is there a way to obtain the HTML text of the current page using JavaScript?

For example if view source gives:

<html> <body> Hello World </body> </html>

Then I'm looking for a way to put the above html in a JavaScript variable.

Thanks

Wayne
 
Back
Top