The Document.open method in JS __js

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.