
以下是可以使用旧版 DOM 访问的文档属性 -
| Sr.No | 属性与说明 |
|---|---|
| 1 |
alinkColor
已弃用 - 指定激活链接颜色的字符串。
Ex - document.alinkColor |
| 2 |
anchors[ ]
Anchor数组对象,文档中出现的每个锚点都有一个 Ex - document.anchors[0]、document.anchors[1] 等 |
| 3 |
applet[ ]
Applet 对象数组,文档中出现的每个 applet 都有一个 Ex - document.applets[0]、document.applets[1] 等 |
| 4 |
bgColor
已弃用 - A指定文档背景颜色的字符串。 Ex - document.bgColor |
| 5 |
cookie
一个字符串-具有特殊行为的值属性,允许查询和设置与此文档关联的 cookie。 Ex - document.cookie |
| 6 |
域
一个字符串指定文档来自的 Internet 域。用于安全目的。 Ex - document.domain |
| 7 |
嵌入[ ]
An表示使用 Ex - document.embeds[0]、document.embeds[1] 等 |
| 8 |
嵌入[ ]
An表示使用 Ex - document.embeds[0]、document.embeds[1]等 |
以上就是使用传统DOM可以访问哪些文档属性?的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号