Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"View Source" in JavaScript

0 views
Skip to first unread message

SomeOne

unread,
Jan 6, 2002, 2:13:02 PM1/6/02
to
Hi,

I would like to get the exact content of HTML page - something similar as
"View Source" does. I've tried the following expression:
"document.documentElement.outerHTML" but it does not give me back the exact
content: some of the tag names gets converted from lower to upper case,
quotation marks (") are removed from some attributes etc....

Is there a way to get the exact content of HTML page (the one that was send
to the browser from the server)?

Thanks,
bye


0 new messages