The document.open() and document.close() methods...
I was wondering while I was making a JS HTML-editor,when the suer clicked a button the code he wrote would be written to another frame....but if I didn't use document.open() before writing anything,and then document.close() at the end.....the script would just append what the user wrote to what was already written in the page.
So,what is document.open() and document.close() real functionality?
And I thought that using document.write() after the page has finished loading will overwrite the buffer.
Where is it most indicated to use document.open() and document.close()?