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

HTMLJavascriptProgramming Scripts

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

Sr.No
Property & Description
1alinkColor

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

Ex − document.alinkColor
2anchors[ ]

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

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

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

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

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

Ex − document.bgColor
5cookie

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

Ex − document.cookie
6domain

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

Ex − document.domain
7embeds[ ]

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
8embeds[ ]

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
raja
Published on 23-Feb-2018 12:34:29
Advertisements