openopen*
*



Contents  *



Index  *Topic Contents
*Previous Topic: open
*Next Topic: parentElement

open

Description

Opens a stream to collect the output of write or writeln methods.

Syntax

document.open(mimeType, replace)

ParameterDescription
mimeType Currently supports "text/html" only.
replace Optional. String ("replace") indicating whether you want the new document you are writing to replace the current document in the History list. Otherwise, by default, the document you are creating will not replace the current document in the History list.

Return Value

No return value.

Remarks

The following example replaces the document with the new document.

document.open("text/html", "replace")

Applies To

document

Events

onbeforeunload


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.