Home > Web Front-end > HTML Tutorial > What document methods does traditional DOM support?

What document methods does traditional DOM support?

王林
Release: 2023-08-26 15:05:02
forward
1109 people have browsed it

What document methods does traditional DOM support?

The following is a list of document methods supported by the old version of DOM -

##23 ##4write( value , ...)5writeln
Sr.No

Properties and Description

1

td>

clear( )

DEPRECATED - Removes the document content and returns nothing.

For example - document.clear( )

close( ) Closes the document stream opened using the open() method and returns nothing.

Ex - document.close( )

open( ) Deleting existing document content and opening a stream may write new document content. Returns nothing.

Ex - document.open( )

Insert places the specified string or strings into the document currently being parsed or appends to a document opened using open(). Returns nothing.

Ex - document.write( value, ...)

(value, ...) Same as write() except that it appends newlines to the output. Returns nothing.

Ex - document.writeln( value, ...)

The above is the detailed content of What document methods does traditional DOM support?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template