How to get the list of document properties which can be accessed using W3C DOM?



The following are the document properties which can be accessed using W3C DOM −

Sr.No
Property & Description
1
Body
A reference to the Element object that represents the <body> tag of this document.
Ex − document.body
2
DefaultView
Its Read-only property and represents the window in which the document is displayed.
Ex − document.defaultView
3
DocumentElement
A read-only reference to the <html> tag of the document.
Ex − document.documentElement8/31/2008
4
Implementation
It is a read-only property and represents the DOMImplementation object that represents the implementation that created this document.
Ex − document.implementation
Updated on: 2020-06-23T07:06:10+05:30

208 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements