Home >Web Front-end >HTML Tutorial >What document methods does traditional DOM support?
The following is a list of document methods supported by the old version of DOM -
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( ) | |
write( value , ...) |
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, ...) |
writeln |
(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!