howa wrote:
Should we add document.close after each time when we used
document.write() ?
No, while the document loads you can use document.write() with calling
close yourself. However if you use document.write() after the document
has been loaded completely it implictly does a document.open() to
overwrite the loaded document and then your code has to do
document.close() once you are finished writing the new document (which
can be after several document.write() calls).
--
Martin Honnen
http://JavaScript.FAQTs.com/