Reproduced from: http://blog.163.com/hanyan102600@126/blog/static/438503422008228111841848/
Document.open () Definitions and Usage
The open () method opens a new document and erases the contents of the current document. Grammar
Document.open (Mimetype,replace)
Parameters |
Description |
MimeType |
Optional. Specify the type of document being written. The default value is "text/html". |
Replace |
Optional. When this parameter is set, you can cause the new document to inherit the history entry from the parent document. |
Description
This method erases the contents of the current HTML document, starts a new document, and the new document is written in the write () method or the Writeln () method. Tips and Comments
Note: A script or event handle that is part of a covered document cannot call the method because the script or event handle itself is overwritten. instance