javascript中document对象的属性和方法

document.documentElement; document.firstChild;document.childNodes[0];// 取得对<html>的引用
document.body; // 取得对<body>的引用
document.doctype; // 取得对<!DOCTYPE>的引用
document.title;// 取得文档标题
document.URL;// 取得完整的URL
document.domain;// 取得域名
document.referrer;// 取得来源页面的url
document.getElementById();
document.getElementsByTagName();
document.getElementsByName();
document.anchors;// 包含文档中所有带name特性的<a>元素;
document.forms;// 包含文档中所有的<form>元素;
document.images;// 包含文档中所有的<img>元素;
document.links;// 包含文档中所有带href特性的<a>元素;
document.write();
document.writeln();// 写入文本到输出流
document.open();// 打开网页输出流
document.close();// 关闭网页输出流
原文地址:https://www.cnblogs.com/smile361/p/3394352.html