Document.open() MethodNameDocument.open() Method---begin a new documentAvailabilityNavigator 2.0, partial support in Internet Explorer 3.0 Synopsis
document.open() document.open(mimetype) Arguments
Returnsnothing DescriptionThe document.open() method opens a stream to document, so that subsequent document.write() calls can append data to the document. The optional mimetype argument specifies the type of data to be written, and tells the browser how to interpret that data. Note, however that Internet Explorer 3.0 does not support the mimetype argument and always assumes documents of HTML text. If there is any existing document displayed when the open() method is called, it will be automatically cleared by the call to open() or by the first call to write() or writeln(). After opening a document with open() and writing data to it with write(), you should complete the document by calling close(). UsageYou will usually call Document.open() with no argument, to open an HTML document. Occasionally, a "text/plain" document is useful; for example for a pop-up window of debugging messages. |
|