Javascript - accessing HTML

b4u

Golden Member
Nov 8, 2002
1,380
2
81
Hi,

I'm searching for a way of accessing the entire HTML code of a given page, in client side (javascript). Does anyone knows how to do it?

Something like "document.innerHTML" (this doesn't work, I know), that would be called on body-onload event.

Thanks
 

b4u

Golden Member
Nov 8, 2002
1,380
2
81
Hi,

Thanks for your reply :)

But I believe that your code will give the HTML that is inside the body tag. I would like to achieve that result but with ALL document received by the browser.

Let's say for instance that I want to catch something outside <HTML></HTML> tags ... so document.body.innetHTML will not get that far ... :(

Any more clues?


Thanks