document.replaceChild(new_document_element, document.documentElement);
I didn't lose the function of my scrollbars.
BTW: new_document_element is a document fragment generated from an
xslt transform. The transforms owner document is set to the document
doing the replacing.
Any ideas?
Thanks!