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

What document methods does traditional DOM support?

王林
王林forward
2023-08-26 15:05:021081browse

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:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete