Home >Web Front-end >JS Tutorial >Introduction to the use of document.open() method in javascript_javascript skills

Introduction to the use of document.open() method in javascript_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:20:411369browse

The document.open() method opens a new document, uses the document.write() method to write the document's content, and then uses the document.close() method to close the document operation so that its content is displayed.

For example:

Copy code The code is as follows:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn