Name

open( ) — NN 2 IE 3 DOM n/a

Synopsis

open(”MIMEType“[, “replace"])

Opens the output stream for writing to the current window or frame. If document.clear( ) has not already been invoked, it is automatically invoked in response to the document.open( ) method. Early version bugs may lead you to use document.write( ) and document.writeln( ) to take care of this method more reliably for you.

Returned Value

None.

Parameters

MIMEType

Advises the browser of the MIME type of the data to be written in subsequent statements. Navigator supports: "text/html" | "text/plain" | "image/gif" | "image/jpeg" | "image/xbm" | "plugIn". Only "text/html" supported in Internet Explorer 4.

replace

The presence of this parameter directs the browser to replace the entry in the history list for the current document with the document about to be written.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.