使用旧式 DOM 可以访问哪些文档属性?
htmljavascriptprogramming scripts更新于 2024/5/28 18:20:17
以下是使用旧式 DOM 可以访问的文档属性 −
| Sr.No | 属性与说明 |
|---|---|
| 1 | alinkColor 已弃用 − 指定激活链接颜色的字符串。 Ex − document.alinkColor |
| 2 | anchors[ ] Anchor 对象数组,每个对象对应文档中出现的一个锚点 Ex − document.anchors[0]、document.anchors[1] 等等 |
| 3 | applets[ ] Applet 对象数组,每个对象对应文档中出现的一个 applet Ex − document.applets[0]、document.applets[1] 等等 |
| 4 | bgColor 已弃用 − 指定文档背景颜色的字符串。 Ex − document.bgColor |
| 5 | cookie 具有特殊行为的字符串值属性,允许查询和设置与此文档关联的 cookie。 Ex − document.cookie |
| 6 | domain 用于指定文档所属 Internet 域的字符串。用于安全目的。 Ex − document.domain |
| 7 | embeds[ ] 使用 <embed> 标签嵌入文档中的数据对象数组。与 plugins[ 同义。某些插件和 ActiveX 控件可以通过 JavaScript 代码进行控制。 Ex − document.embeds[0]、document.embeds[1] 等等 |
| 8 | embeds[ ] 使用 <embed> 标签表示嵌入文档中的数据的对象数组。与 plugins[ 同义。某些插件和 ActiveX 控件可以用 JavaScript 代码控制。 Ex − document.embeds[0]、document.embeds[1] 等等 |
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

