JS document属性,documentElement

文章作者:中山市飞娥软件工作室「Feiesoft.com」  浏览次数:5562 次  更新日期:2013-10-30

 每个Web浏览器窗口(或帧)显示一个HTML文档。表示这个窗口的Window对象有一个document属性,它引用了一个Document对象。

document.doctype = [object DocumentType]
document.documentElement = [object HTMLHtmlElement]
document.implementation = [object DOMImplementation]
document.inputEncoding = UTF-8
document.xmlEncoding =
document.xmlStandalone = false
document.xmlVersion =
document.styleSheets = [object StyleSheetList]
document.defaultView = [object Window]
document.hidden = false
document.msHidden = false
document.msVisibilityState = visible
document.visibilityState = visible
document.URL = http://www.feiesoft.com/
document.activeElement = [object HTMLBodyElement]
document.alinkColor = #0000ff
document.all = [object HTMLCollection]
document.anchors = [object HTMLCollection]
document.applets = [object HTMLCollection]
document.bgColor = #eeeeee
document.body = [object HTMLBodyElement]
document.characterSet = utf-8
document.charset = utf-8
document.compatMode = CSS1Compat
document.cookie = Hm_lpvt_44619f4658eccf35b99714d2b545390e=1383066418; Hm_lvt_44619f4658eccf35b99714d2b545390e=1383021744,1383025938,1383031087,1383052689; cookie_user_mail=feiesoft%40163.com; bdshare_firstime=1382937837739; PHPSESSID=53k6ba9rug49q97kq4dri69dn0
document.defaultCharset = gb2312
document.designMode = Inherit
document.dir =
document.domain = www.feiesoft.com
document.embeds = [object HTMLCollection]
document.fgColor = #555555
document.forms = [object HTMLCollection]
document.head = [object HTMLHeadElement]
document.images = [object HTMLCollection]
document.lastModified = 10/30/2013 01:07:01
document.linkColor = #0000ff
document.links = [object HTMLCollection]
document.location = http://www.feiesoft.com/
document.onabort = null
document.onblur = null
document.oncanplay = null
document.oncanplaythrough = null
document.onchange = null
document.onclick = null
document.oncontextmenu = null
document.ondblclick = null
document.ondrag = null
document.ondragend = null
document.ondragenter = null
document.ondragleave = null
document.ondragover = null
document.ondragstart = null
document.ondrop = null
document.ondurationchange = null
document.onemptied = null
document.onended = null
document.onerror = null
document.onfocus = null
document.oninput = null
document.onkeydown = null
document.onkeypress = null
document.onkeyup = null
document.onload = null
document.onloadeddata = null
document.onloadedmetadata = null
document.onloadstart = null
document.onmousedown = null
document.onmousemove = null
document.onmouseout = null
document.onmouseover = null
document.onmouseup = null
document.onmousewheel = null
document.onpause = null
document.onplay = null
document.onplaying = null
document.onprogress = null
document.onratechange = null
document.onreadystatechange = null
document.onreset = null
document.onscroll = null
document.onseeked = null
document.onseeking = null
document.onselect = null
document.onstalled = null
document.onsubmit = null
document.onsuspend = null
document.ontimeupdate = null
document.onvolumechange = null
document.onwaiting = null
document.plugins = [object HTMLCollection]
document.readyState = complete
document.referrer = http://www.feiesoft.com/user_doc_edit.php
document.scripts = [object HTMLCollection]
document.title = 飞娥软件
document.vlinkColor = #800080
document.URLUnencoded = http://www.feiesoft.com/
document.compatible = [object MSCompatibleInfoCollection]
document.documentMode = 10
document.frames = [object Window]
document.media =
document.msCapsLockWarningOff = false
document.onactivate = null
document.onafterupdate = null
document.onbeforeactivate = null
document.onbeforedeactivate = null
document.onbeforeeditfocus = null
document.onbeforeupdate = null
document.oncellchange = null
document.oncontrolselect = null
document.ondataavailable = null
document.ondatasetchanged = null
document.ondatasetcomplete = null
document.ondeactivate = null
document.onerrorupdate = null
document.onfocusin = null
document.onfocusout = null
document.onhelp = null
document.onmscontentzoom = null
document.onmsgesturechange = null
document.onmsgesturedoubletap = null
document.onmsgestureend = null
document.onmsgesturehold = null
document.onmsgesturestart = null
document.onmsgesturetap = null
document.onmsinertiastart = null
document.onmsmanipulationstatechanged = null
document.onmspointercancel = null
document.onmspointerdown = null
document.onmspointerhover = null
document.onmspointermove = null
document.onmspointerout = null
document.onmspointerover = null
document.onmspointerup = null
document.onmssitemodejumplistitemremoved = null
document.onmsthumbnailclick = null
document.onpropertychange = null
document.onrowenter = null
document.onrowexit = null
document.onrowsdelete = null
document.onrowsinserted = null
document.onselectionchange = null
document.onselectstart = null
document.onstop = null
document.onstoragecommit = null
document.parentWindow = [object Window]
document.security = 这种类型的文档没有安全证书。
document.uniqueID = ms__id1
document.selection = [object MSSelection]
document.msCSSOMElementFloatMetrics = false
document.fileCreatedDate = 10/30/2013
document.fileModifiedDate = 10/30/2013
document.fileSize = 29753
document.fileUpdatedDate = 01/01/1601
document.mimeType = HTML 文档
document.nameProp = 飞娥软件
document.protocol = HyperText Transfer Protocol
document.rootElement = null
document.adoptNode =  function adoptNode() {    [native code] }
document.createAttribute =  function createAttribute() {    [native code] }
document.createAttributeNS =  function createAttributeNS() {    [native code] }
document.createCDATASection =  function createCDATASection() {    [native code] }
document.createComment =  function createComment() {    [native code] }
document.createDocumentFragment =  function createDocumentFragment() {    [native code] }
document.createElement =  function createElement() {    [native code] }
document.createElementNS =  function createElementNS() {    [native code] }
document.createProcessingInstruction =  function createProcessingInstruction() {    [native code] }
document.createTextNode =  function createTextNode() {    [native code] }
document.getElementById =  function getElementById() {    [native code] }
document.getElementsByTagName =  function getElementsByTagName() {    [native code] }
document.getElementsByTagNameNS =  function getElementsByTagNameNS() {    [native code] }
document.importNode =  function importNode() {    [native code] }
document.createEvent =  function createEvent() {    [native code] }
document.createRange =  function createRange() {    [native code] }
document.createNodeIterator =  function createNodeIterator() {    [native code] }
document.createTreeWalker =  function createTreeWalker() {    [native code] }
document.elementFromPoint =  function elementFromPoint() {    [native code] }
document.close =  function close() {    [native code] }
document.execCommand =  function execCommand() {    [native code] }
document.getElementsByClassName =  function getElementsByClassName() {    [native code] }
document.getElementsByName =  function getElementsByName() {    [native code] }
document.getSelection =  function getSelection() {    [native code] }
document.hasFocus =  function hasFocus() {    [native code] }
document.open =  function open() {    [native code] }
document.queryCommandEnabled =  function queryCommandEnabled() {    [native code] }
document.queryCommandIndeterm =  function queryCommandIndeterm() {    [native code] }
document.queryCommandState =  function queryCommandState() {    [native code] }
document.queryCommandSupported =  function queryCommandSupported() {    [native code] }
document.queryCommandText =  function queryCommandText() {    [native code] }
document.queryCommandValue =  function queryCommandValue() {    [native code] }
document.write =  function write() {    [native code] }
document.writeln =  function writeln() {    [native code] }
document.attachEvent =  function attachEvent() {    [native code] }
document.detachEvent =  function detachEvent() {    [native code] }
document.createEventObject =  function createEventObject() {    [native code] }
document.fireEvent =  function fireEvent() {    [native code] }
document.clear =  function clear() {    [native code] }
document.execCommandShowHelp =  function execCommandShowHelp() {    [native code] }
document.focus =  function focus() {    [native code] }
document.releaseCapture =  function releaseCapture() {    [native code] }
document.updateSettings =  function updateSettings() {    [native code] }
document.createStyleSheet =  function createStyleSheet() {    [native code] }
document.msElementsFromPoint =  function msElementsFromPoint() {    [native code] }
document.msElementsFromRect =  function msElementsFromRect() {    [native code] }
document.removeNode =  function removeNode() {    [native code] }
document.replaceNode =  function replaceNode() {    [native code] }
document.swapNode =  function swapNode() {    [native code] }
document.querySelector =  function querySelector() {    [native code] }
document.querySelectorAll =  function querySelectorAll() {    [native code] }
document.attributes = null
document.childNodes = [object NodeList]
document.firstChild = [object DocumentType]
document.lastChild = [object HTMLHtmlElement]
document.localName = null
document.namespaceURI = null
document.nextSibling = null
document.nodeName = #document
document.nodeType = 9
document.nodeValue = null
document.ownerDocument = null
document.parentNode = null
document.prefix = null
document.previousSibling = null
document.textContent = null
document.addEventListener =  function addEventListener() {    [native code] }
document.dispatchEvent =  function dispatchEvent() {    [native code] }
document.removeEventListener =  function removeEventListener() {    [native code] }
document.appendChild =  function appendChild() {    [native code] }
document.cloneNode =  function cloneNode() {    [native code] }
document.compareDocumentPosition =  function compareDocumentPosition() {    [native code] }
document.hasAttributes =  function hasAttributes() {    [native code] }
document.hasChildNodes =  function hasChildNodes() {    [native code] }
document.insertBefore =  function insertBefore() {    [native code] }
document.isDefaultNamespace =  function isDefaultNamespace() {    [native code] }
document.isEqualNode =  function isEqualNode() {    [native code] }
document.isSameNode =  function isSameNode() {    [native code] }
document.isSupported =  function isSupported() {    [native code] }
document.lookupNamespaceURI =  function lookupNamespaceURI() {    [native code] }
document.lookupPrefix =  function lookupPrefix() {    [native code] }
document.normalize =  function normalize() {    [native code] }
document.removeChild =  function removeChild() {    [native code] }
document.replaceChild =  function replaceChild() {    [native code] }
document.ATTRIBUTE_NODE = 2
document.CDATA_SECTION_NODE = 4
document.COMMENT_NODE = 8
document.DOCUMENT_FRAGMENT_NODE = 11
document.DOCUMENT_NODE = 9
document.DOCUMENT_POSITION_CONTAINED_BY = 16
document.DOCUMENT_POSITION_CONTAINS = 8
document.DOCUMENT_POSITION_DISCONNECTED = 1
document.DOCUMENT_POSITION_FOLLOWING = 4
document.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
document.DOCUMENT_POSITION_PRECEDING = 2
document.DOCUMENT_TYPE_NODE = 10
document.ELEMENT_NODE = 1
document.ENTITY_NODE = 6
document.ENTITY_REFERENCE_NODE = 5
document.NOTATION_NODE = 12
document.PROCESSING_INSTRUCTION_NODE = 7
document.TEXT_NODE = 3