What document properties can be accessed using traditional DOM?

WBOY
Release: 2023-09-06 11:13:10
forward
1323 people have browsed it

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template