doucment的獲取節點的信息

document.activeElement 返回當前獲取焦點元素
document.addEventListener() 向文檔添加句柄
document.adoptNode(node) 從另一個文檔返回 adapded 節點到當前文檔。
document.anchors 返回對文檔中全部 Anchor 對象的引用。
document.applets 返回對文檔中全部 Applet 對象的引用。
document.baseURI 返回文檔的絕對基礎 URI
document.body 返回文檔的body元素
document.close() 關閉用 document.open() 方法打開的輸出流,並顯示選定的數據。
document.cookie 設置或返回與當前文檔有關的全部 cookie。
document.createAttribute() 建立一個屬性節點
document.createComment() createComment() 方法可建立註釋節點。
document.createDocumentFragment() 建立空的 DocumentFragment 對象,並返回此對象。
document.createElement() 建立元素節點。
document.createTextNode() 建立文本節點。
document.doctype 返回與文檔相關的文檔類型聲明 (DTD)。
document.documentElement 返回文檔的根節點
document.documentMode 返回用於經過瀏覽器渲染文檔的模式
document.documentURI 設置或返回文檔的位置
document.domain 返回當前文檔的域名。
document.domConfig 返回normalizeDocument()被調用時所使用的配置
document.embeds 返回文檔中全部嵌入的內容(embed)集合
document.forms 返回對文檔中全部 Form 對象引用。
document.getElementsByClassName() 返回文檔中全部指定類名的元素集合,做爲 NodeList 對象。
document.getElementById() 返回對擁有指定 id 的第一個對象的引用。
document.getElementsByName() 返回帶有指定名稱的對象集合。
document.getElementsByTagName() 返回帶有指定標籤名的對象集合。
document.images 返回對文檔中全部 Image 對象引用。
document.implementation 返回處理該文檔的 DOMImplementation 對象。
document.importNode() 把一個節點從另外一個文檔複製到該文檔以便應用。
document.inputEncoding 返回用於文檔的編碼方式(在解析時)。
document.lastModified 返回文檔被最後修改的日期和時間。
document.links 返回對文檔中全部 Area 和 Link 對象引用。
document.normalize() 刪除空文本節點,並鏈接相鄰節點
document.normalizeDocument() 刪除空文本節點,並鏈接相鄰節點的
document.open() 打開一個流,以收集來自任何 document.write() 或 document.writeln() 方法的輸出。
document.querySelector() 返回文檔中匹配指定的CSS選擇器的第一元素
document.querySelectorAll() document.querySelectorAll() 是 HTML5中引入的新方法,返回文檔中匹配的CSS選擇器的全部元素節點列表
document.readyState 返回文檔狀態 (載入中……)
document.referrer 返回載入當前文檔的文檔的 URL。
document.removeEventListener() 移除文檔中的事件句柄(由 addEventListener() 方法添加)
document.renameNode() 重命名元素或者屬性節點。
document.scripts 返回頁面中全部腳本的集合。
document.strictErrorChecking 設置或返回是否強制進行錯誤檢查。
document.title 返回當前文檔的標題。
document.URL 返回文檔完整的URL
document.write() 向文檔寫 HTML 表達式 或 JavaScript 代碼。
document.writeln() 等同於 write() 方法,不一樣的是在每一個表達式以後寫一個換行符。
相關文章
相關標籤/搜索