>I have a page which contains a link to a javascript function. When I click on that function, it returns the document.body.innerHTML value. I was expecting to receive the source code of the current page but instead it returns the source code of the DIV itself. That link is not on the DIV but on the page itself. Anyone knows why it is doing that and how I could obtain the source code of the page?
Hi Michel,
did you try the access via
document.getElementsByTagName("body")[0].innerHTML
or
document.getElementById("someID").innerHTML
(after assigning an ID to the body tag)?
HTH Robert
I've acquired quite a taste for a well-made mistake... [Fiona Apple]