I am using the document.write( HTML ) to change a document html and it re-renders the page by itself, which is exactly what I want, but it does not show the same behavior on IE, as following:
document.open();
document.write(<HTML>);
document.close();
So I tried the following :
document.documentElement.innerHTML = <HTML>;
But it did not render the page unless I refresh it.
So what is the difference between them, and what is the best way to change the document content and re-render it?