Home >Web Front-end >HTML Tutorial >What document properties can be accessed using traditional DOM?

What document properties can be accessed using traditional DOM?

WBOY
WBOYforward
2023-09-06 11:13:101365browse

What document properties can be accessed using traditional DOM?

The following are the document properties that can be accessed using the legacy DOM -

##2##3applet[ ]4bgColor##5678
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.

Array of Applet objects, each applet that appears in the document has one

Ex - document.applets[0], document .applets[1] etc

Deprecated - A string specifying the document background color.

Ex

- document.bgColor

cookie #A string - value attribute with special behavior that allows querying and setting cookies associated with this document.

Ex

- document.cookie

Domain #A string specifying the Internet domain from which the document comes. For security purposes.

Ex

- document.domain

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.

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete