
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
What are the document methods supported by Legacy DOM?
The following is the list of document methods supported by Legacy DOM −
Sr.No | Property & Description |
---|---|
1 | clear( ) Deprecated − Erases the contents of the document and returns nothing. Ex − document.clear( ) |
2 | close( ) Closes a document stream opened with the open( ) method and returns nothing. Ex − document.close( ) |
3 | open( ) Deletes existing document content and opens a stream to which new document contents may be written. Returns nothing. Ex − document.open( ) |
4 | write( value, ...) Inserts the specified string or strings into the document currently being parsed or appends to document opened with open( ). Returns nothing. Ex − document.write( value, ...) |
5 | writeln( value, ...) Identical to write( ), except that it appends a newline character to the output. Returns nothing. Ex − document.writeln( value, ...) |
- Related Articles
- What are the methods supported by W3C DOM?
- What are the document properties which can be accessed using Legacy DOM?
- Which methods are supported by Get-ChildItem in PowerShell?
- How can I access document properties using Legacy DOM method in JavaScript?
- What are the data types supported by JDBC?
- What are the escape sequences supported by C#?
- What implicit objects are supported by JSP?
- What are the document properties of IE4 DOM method?
- What are common HTML Events supported by JavaScript?
- What are the transaction isolation levels supported by JDBC API?
- What are the parameters supported by Get-ChildItem in PowerShell?
- What are the different types of conditional statements supported by C#?
- What are the MySQL Supported Platforms?
- What are all the custom URL schemes supported by the Facebook iPhone app?
- Types of graphics are supported by HTML5?

Advertisements