Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Body.innerHTML returns wrong code
Message
From
26/08/2002 00:11:51
 
 
To
24/08/2002 19:36:23
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00693356
Message ID:
00693533
Views:
15
>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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform