【javascript】DOM操作方法(3)——document节点属性

document.doctype   //
document.documentElement //来获取html元素 document.defaultView //返回document对象所在的window对象 document.body //返回当前文档的
<body>节点 document.head //返回当前文档的<head>节点 document.activeElement //返回当前文档中获得焦点的那个元素。 //节点集合属性 document.links //返回当前文档的所有a元素 document.forms //返回页面中所有表单元素 document.images //返回页面中所有图片元素 document.embeds //返回网页中所有嵌入对象 document.scripts //返回当前文档的所有脚本 document.styleSheets //返回当前网页的所有样式表 //文档信息属性 document.documentURI //表示当前文档的网址 document.URL //返回当前文档的网址 document.domain //返回当前文档的域名 document.lastModified //返回当前文档最后修改的时间戳 document.location //返回location对象,提供当前文档的URL信息 document.referrer //返回当前文档的访问来源 document.title //返回当前文档的标题 document.characterSet属性返回渲染当前文档的字符集,比如UTF-8、ISO-8859-1。 document.readyState //返回当前文档的状态 document.designMode //控制当前文档是否可编辑,可读写 document.compatMode //返回浏览器处理文档的模式 document.cookie //用来操作Cookie

 

posted on 2017-10-11 15:28  忆华灯纵博  阅读(203)  评论(0编辑  收藏  举报