The following are the document properties that can be accessed using the legacy DOM -
Sr.No
|
Properties and Description |
---|---|
1 |
alinkColor
DEPRECATED - A string specifying the activation link color.
Ex - document.alinkColor |
anchors[ ]Anchor array object, each anchor point that appears in the document has an
Ex - document.anchors[0], document.anchors[1], etc. |
|
applet[ ] |
Array of Applet objects, each applet that appears in the document has one Ex - document.applets[0], document .applets[1] etc |
bgColor |
Deprecated - A string specifying the document background color. Ex- document.bgColor | ##5
cookie |
#A string - value attribute with special behavior that allows querying and setting cookies associated with this document.
Ex - document.cookie
| 6
Domain |
#A string specifying the Internet domain from which the document comes. For security purposes.
Ex - document.domain
| 7
Embedded[ ] |
An array of objects representing data embedded in the document using tags. Synonym for plugin[ ]. Some plug-ins and ActiveX controls can be controlled using JavaScript code. Ex - document.embeds[0], document.embeds[1], etc.
| 8
Embedded [ ] |
An array of objects representing data embedded in the document using tags. Synonym for plugin[ ]. Some plug-ins and ActiveX controls can be controlled using JavaScript code. Ex - document.embeds[0], document.embeds[1], etc.
|
The above is the detailed content of What document properties can be accessed using traditional DOM?. For more information, please follow other related articles on the PHP Chinese website!