订阅   |   打赏   |  

Document对象

文档正在使用的字符集
document.characterSet
使用 quirks怪异模式 或 strict严格模式
document.compatMode
MIME Content-Type
document.contentType
当前文档的文档类型定义(DTD)
document.doctype
当前文档的直接子节点(<html>元素)
document.documentElement
当前文档的路径
document.documentURI
当前文档的 <head> 元素
document.head
包含文档中所有超链接的列表
document.links
文档中所有的 <script> 元素
document.scripts
当前文档中所包含的图片的列表
document.images
当前文档中所有表单元素 <form> 的列表
document.forms
当前文档的嵌入式的元素 <embed> 列表
document.embeds
当前文档的 FontFaceSet 接口
document.fonts
可用插件列表
document.plugins
当前页面是否隐藏
document.hidden
与当前文档相关联的 DOM 实现
document.implementation
当前正使用的样式表集
document.electedStyleSheetSet
最后启用样式表的名字
document.lastStyleSheetSet
文档上可用样式表的列表
document.styleSheetSets
获取FeaturePolicy接口
document.featurePolicy
首选样式表集
document.preferredStyleSheetSet
对文档 Element 元素的引用
document.scrollingElement
当前文档的可见性(取值:visible,hidden,prerender,unloaded)
document.visibilityState
是否全屏
document.fullscreenElement
获取分号分隔的cookie列表 或 写入cookie
document.cookie
获取对 window 对象的引用
document.defaultView
获取或设置(让用户)编辑整个文档的能力
document.designMode
获取或设置文档的文字方向(rtl 或 ltr)
document.dir
获取或设置当前文档的域名
document.domain
文档最后修改的时间
document.lastModified
当前文档的 URI
document.location
文档的地址栏链接
document.URL
当前文档的加载状态
document.readyState
来源页面的 URI
document.referrer
获取或设置当前文档的标题
document.title
推广
共 0 条评论

快来抢沙发...

  • 0
  • 10 / page
    Go to
打赏
设置