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?