@BillyRayAug 24.2004 — #Only that's not strictly true - try adding a comment as the first line of your file and seeing what happens.
AFAIK, there is no foolproof way of doing what you are asking in 1 single call, and certainly not that would work across different browsers and operating systems.
@CharlesAug 24.2004 — #[i]Originally posted by TheBearMay [/i]
[B]document.documentElement.innerHTML should give you everthing after the <HTML> tag... [/B][/QUOTE] [font=monospace]document.documentElement.outerHTML[/font] shouldn't give you everything but the prolog, but it does. "Element.outerHTML", like "Element.innerHTML" is a Microsoft corruption of JavaScript that is as useful as it is destructive to the whole idea of the DOM.
@neewahauthorJul 12.2005 — #I was going to make a HTML editor using javascript and PHP, and I might need to get the page's HTML once PHP has written in its code.
Also, it must have been about a year ago once I posted this topic, i have learnt a lot more in that time, especially with server-side language PHP, and also using JavaScript to give really good effects