Syntax error What are the document properties which can be accessed using Legacy DOM?

What are the document properties which can be accessed using Legacy DOM?



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

Sr.No
Property & Description
1 alinkColor

Deprecated − A string that specifies the color of activated links.

Ex − document.alinkColor
2 anchors[ ]

An array of Anchor objects, one for each anchor that appears in the document

Ex − document.anchors[0], document.anchors[1] and so on
3 applets[ ]

An array of Applet objects, one for each applet that appears in the document

Ex − document.applets[0], document.applets[1] and so on
4 bgColor

Deprecated − A string that specifies the background color of the document.

Ex − document.bgColor
5 cookie

A string-valued property with special behavior that allows the cookies associated with this document to be queried and set.

Ex − document.cookie
6 domain

A string that specifies the Internet domain the document is from. Used for security purpose.

Ex − document.domain
7 embeds[ ]

An array of objects that represent data embedded in the document with the <embed> tag. A synonym for plugins[ ]. Some plugins and ActiveX controls can be controlled with JavaScript code.

Ex − document.embeds[0], document.embeds[1] and so on
8 embeds[ ]

An array of objects that represent data embedded in the document with the <embed> tag. A synonym for plugins[ ]. Some plugins and ActiveX controls can be controlled with JavaScript code.

Ex − document.embeds[0], document.embeds[1] and so on
Updated on: 2020-06-23T07:22:35+05:30

132 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements