Navigator 2.0, partial support in Internet Explorer 3.0
document.open() document.open(mimetype)
An optional string argument that specifies the type of data to be written to and display in document. The value of this argument should be one of the standard MIME types that the browser understands ("text/html", "text/plain", "image/gif", "image/jpeg", "image/x-bitmap" for Navigator) or some other MIME type that can be handled by an installed plug-in. If this argument is omitted, it is taken to be "text/html". This argument is ignored by Internet Explorer 3.0, which always assumes a document of type "text/html".
nothing
The 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().
You 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.
file: /Techref/language/java/script/definitive/refp_89.htm, 6KB, , updated: 2019/10/14 15:00, local time: 2024/12/23 16:23,
18.222.161.119:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/language/java/script/definitive/refp_89.htm"> [Chapter 21] Reference: Document.open()</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.