10
7
2011
0

javascript 之 object对象 之 div的对象 之 不同浏览器对比 完整信息

对div的Object对象中的信息(方法和属性)作了输出,有ie8,ff7,opera11三Browser的,因为对其认识还不深,so以此来了解下,以便将来使用。(PS:内容真多!,这边就贴信息,是完整的,以后再写文章进行分析,估计会先对这些信息作个精简,因为有些不常用。)

querySelector--->function querySelector() { [native code] }
querySelectorAll--->function querySelectorAll() { [native code] }
scrollTop--->0
scrollLeft--->0
scrollHeight--->18
scrollWidth--->1187
clientTop--->0
clientLeft--->0
clientHeight--->18
clientWidth--->1187
firstElementChild--->null
lastElementChild--->null
previousElementSibling--->javascript:;
nextElementSibling--->javascript:;
childElementCount--->0
children--->[object HTMLCollection]
classList--->scroll
setCapture--->function setCapture() { [native code] }
getElementsByClassName--->function getElementsByClassName() { [native code] }
getClientRects--->function getClientRects() { [native code] }
getBoundingClientRect--->function getBoundingClientRect() { [native code] }
releaseCapture--->function releaseCapture() { [native code] }
mozMatchesSelector--->function mozMatchesSelector() { [native code] }
addEventListener--->function addEventListener() { [native code] }
removeEventListener--->function removeEventListener() { [native code] }
dispatchEvent--->function dispatchEvent() { [native code] }
style--->[object CSSStyleDeclaration]
contentEditable--->inherit
isContentEditable--->false
offsetParent--->[object HTMLBodyElement]
innerHTML--->ee
offsetLeft--->8
offsetTop--->8
offsetHeight--->18
offsetWidth--->1171
scrollIntoView--->function scrollIntoView() { [native code] }
id--->scroll
title--->
lang--->
dir--->
className--->scroll
accessKey--->
blur--->function blur() { [native code] }
focus--->function focus() { [native code] }
click--->function click() { [native code] }
tagName--->DIV
removeAttributeNS--->function removeAttributeNS() { [native code] }
removeAttribute--->function removeAttribute() { [native code] }
getAttribute--->function getAttribute() { [native code] }
getElementsByTagName--->function getElementsByTagName() { [native code] }
setAttribute--->function setAttribute() { [native code] }
getElementsByTagNameNS--->function getElementsByTagNameNS() { [native code] }
hasAttributeNS--->function hasAttributeNS() { [native code] }
setAttributeNS--->function setAttributeNS() { [native code] }
hasAttribute--->function hasAttribute() { [native code] }
getAttributeNS--->function getAttributeNS() { [native code] }
nodeName--->DIV
nodeValue--->null
nodeType--->1
parentNode--->[object HTMLDivElement]
childNodes--->[object NodeList]
firstChild--->[object Text]
lastChild--->[object Text]
previousSibling--->[object Text]
nextSibling--->[object Text]
attributes--->[object NamedNodeMap]
ownerDocument--->[object HTMLDocument]
namespaceURI--->http://www.w3.org/1999/xhtml
prefix--->null
localName--->div
baseURI--->file:///C:/movePic.html
textContent--->ee
setUserData--->function setUserData() { [native code] }
getUserData--->function getUserData() { [native code] }
insertBefore--->function insertBefore() { [native code] }
replaceChild--->function replaceChild() { [native code] }
removeChild--->function removeChild() { [native code] }
appendChild--->function appendChild() { [native code] }
hasChildNodes--->function hasChildNodes() { [native code] }
cloneNode--->function cloneNode() { [native code] }
normalize--->function normalize() { [native code] }
isSupported--->function isSupported() { [native code] }
hasAttributes--->function hasAttributes() { [native code] }
compareDocumentPosition--->function compareDocumentPosition() { [native code] }
isSameNode--->function isSameNode() { [native code] }
lookupPrefix--->function lookupPrefix() { [native code] }
isDefaultNamespace--->function isDefaultNamespace() { [native code] }
lookupNamespaceURI--->function lookupNamespaceURI() { [native code] }
isEqualNode--->function isEqualNode() { [native code] }
getAttributeNode--->function getAttributeNode() { [native code] }
setAttributeNode--->function setAttributeNode() { [native code] }
removeAttributeNode--->function removeAttributeNode() { [native code] }
getAttributeNodeNS--->function getAttributeNodeNS() { [native code] }
setAttributeNodeNS--->function setAttributeNodeNS() { [native code] }
align--->
ELEMENT_NODE--->1
ATTRIBUTE_NODE--->2
TEXT_NODE--->3
CDATA_SECTION_NODE--->4
ENTITY_REFERENCE_NODE--->5
ENTITY_NODE--->6
PROCESSING_INSTRUCTION_NODE--->7
COMMENT_NODE--->8
DOCUMENT_NODE--->9
DOCUMENT_TYPE_NODE--->10
DOCUMENT_FRAGMENT_NODE--->11
NOTATION_NODE--->12
DOCUMENT_POSITION_DISCONNECTED--->1
DOCUMENT_POSITION_PRECEDING--->2
DOCUMENT_POSITION_FOLLOWING--->4
DOCUMENT_POSITION_CONTAINS--->8
DOCUMENT_POSITION_CONTAINED_BY--->16
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC--->32
hidden--->false
tabIndex--->-1
draggable--->false
spellcheck--->false
dataset--->[object DOMStringMap]

 

accessKey--->
align--->
all--->[object HTMLCollection]
attributes--->[object NamedNodeMap]
baseURI--->file://localhost/C:/movePic.html
childElementCount--->0
childNodes--->[object NodeList]
children--->[object HTMLCollection]
classList--->scroll
className--->scroll
clientHeight--->16
clientLeft--->0
clientTop--->0
clientWidth--->1072
contentEditable--->inherit
currentStyle--->[object CSSStyleDeclaration]
dataset--->[object DOMStringMap]
dir--->
document--->[object HTMLDocument]
firstChild--->[object Text]
firstElementChild--->null
hidden--->false
id--->scroll
innerHTML--->ee 
innerText--->ee 
isContentEditable--->false
lang--->
lastChild--->[object Text]
lastElementChild--->null
localName--->DIV
namespaceURI--->null
nextElementSibling--->javascript:;
nextSibling--->[object Text]
nodeName--->DIV
nodeType--->1
nodeValue--->null
offsetHeight--->16
offsetLeft--->8
offsetParent--->[object HTMLBodyElement]
offsetTop--->8
offsetWidth--->1056
outerHTML--->ee
outerText--->ee
ownerDocument--->[object HTMLDocument]
parentElement--->[object HTMLDivElement]
parentNode--->[object HTMLDivElement]
prefix--->null
previousElementSibling--->javascript:;
previousSibling--->[object Text]
scrollHeight--->16
scrollLeft--->0
scrollTop--->0
scrollWidth--->1056
sourceIndex--->6
spellcheck--->true
style--->[object CSSStyleDeclaration]
tabIndex--->-1
tagName--->DIV
textContent--->ee 
title--->
unselectable--->
onscroll--->null
onfocusin--->null
onfocusout--->null
onclick--->null
onmousedown--->null
onmouseup--->null
onmouseover--->null
onmouseenter--->null
onmousemove--->null
onmouseout--->null
onmouseleave--->null
onmousewheel--->null
onkeypress--->null
onkeydown--->null
onkeyup--->null
onload--->null
onunload--->null
onabort--->null
onerror--->null
onfocus--->null
onblur--->null
ondblclick--->null
oncontextmenu--->null
onreadystatechange--->null
oninvalid--->null
onloadstart--->null
onprogress--->null
onsuspend--->null
onstalled--->null
onloadend--->null
onemptied--->null
onplay--->null
onpause--->null
onloadedmetadata--->null
onloadeddata--->null
onwaiting--->null
onplaying--->null
onseeking--->null
onseeked--->null
ontimeupdate--->null
onended--->null
oncanplay--->null
oncanplaythrough--->null
onratechange--->null
ondurationchange--->null
onvolumechange--->null
blur--->function blur() { [native code] }
focus--->function focus() { [native code] }
click--->function click() { [native code] }
insertAdjacentElement--->function insertAdjacentElement() { [native code] }
insertAdjacentHTML--->function insertAdjacentHTML() { [native code] }
insertAdjacentText--->function insertAdjacentText() { [native code] }
toString--->function Function() { [native code] }
removeAttributeNode--->function removeAttributeNode() { [native code] }
contains--->function contains() { [native code] }
scrollIntoView--->function scrollIntoView() { [native code] }
getBoundingClientRect--->function getBoundingClientRect() { [native code] }
getClientRects--->function getClientRects() { [native code] }
getAttribute--->function getAttribute() { [native code] }
getAttributeNS--->function getAttributeNS() { [native code] }
hasAttribute--->function hasAttribute() { [native code] }
hasAttributeNS--->function hasAttributeNS() { [native code] }
setAttribute--->function setAttribute() { [native code] }
setAttributeNS--->function setAttributeNS() { [native code] }
removeAttribute--->function removeAttribute() { [native code] }
removeAttributeNS--->function removeAttributeNS() { [native code] }
getAttributeNode--->function getAttributeNode() { [native code] }
getAttributeNodeNS--->function getAttributeNodeNS() { [native code] }
setAttributeNode--->function setAttributeNode() { [native code] }
setAttributeNodeNS--->function setAttributeNodeNS() { [native code] }
getElementsByTagName--->function getElementsByTagName() { [native code] }
getElementsByTagNameNS--->function getElementsByTagNameNS() { [native code] }
getElementsByClassName--->function getElementsByClassName() { [native code] }
querySelector--->function querySelector() { [native code] }
querySelectorAll--->function querySelectorAll() { [native code] }
oMatchesSelector--->function oMatchesSelector() { [native code] }
dispatchEvent--->function dispatchEvent() { [native code] }
insertBefore--->function insertBefore() { [native code] }
replaceChild--->function replaceChild() { [native code] }
removeChild--->function removeChild() { [native code] }
appendChild--->function appendChild() { [native code] }
hasChildNodes--->function hasChildNodes() { [native code] }
cloneNode--->function cloneNode() { [native code] }
normalize--->function normalize() { [native code] }
isSupported--->function isSupported() { [native code] }
hasAttributes--->function hasAttributes() { [native code] }
isSameNode--->function isSameNode() { [native code] }
isEqualNode--->function isEqualNode() { [native code] }
getFeature--->function getFeature() { [native code] }
compareDocumentPosition--->function compareDocumentPosition() { [native code] }
addEventListener--->function addEventListener() { [native code] }
removeEventListener--->function removeEventListener() { [native code] }
attachEvent--->function attachEvent() { [native code] }
detachEvent--->function detachEvent() { [native code] }
lookupPrefix--->function lookupPrefix() { [native code] }
isDefaultNamespace--->function isDefaultNamespace() { [native code] }
lookupNamespaceURI--->function lookupNamespaceURI() { [native code] }
selectNodes--->function selectNodes() { [native code] }
selectSingleNode--->function selectSingleNode() { [native code] }
ELEMENT_NODE--->1
ATTRIBUTE_NODE--->2
TEXT_NODE--->3
CDATA_SECTION_NODE--->4
ENTITY_REFERENCE_NODE--->5
ENTITY_NODE--->6
PROCESSING_INSTRUCTION_NODE--->7
COMMENT_NODE--->8
DOCUMENT_NODE--->9
DOCUMENT_TYPE_NODE--->10
DOCUMENT_FRAGMENT_NODE--->11
NOTATION_NODE--->12
DOCUMENT_POSITION_DISCONNECTED--->1
DOCUMENT_POSITION_PRECEDING--->2
DOCUMENT_POSITION_FOLLOWING--->4
DOCUMENT_POSITION_CONTAINS--->8
DOCUMENT_POSITION_CONTAINED_BY--->16
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC--->32

 

nextSibling--->javascript:;
onresizeend--->null
onrowenter--->null
aria-haspopup--->
childNodes--->[object]
ondragleave--->null
canHaveHTML--->true
onbeforepaste--->null
ondragover--->null
onbeforecopy--->null
aria-disabled--->
onpage--->null
recordNumber--->null
previousSibling--->javascript:;
nodeName--->DIV
onbeforeactivate--->null
accessKey--->
currentStyle--->[object]
scrollLeft--->0
onbeforeeditfocus--->null
oncontrolselect--->null
aria-hidden--->
onblur--->null
hideFocus--->false
clientHeight--->0
style--->[object]
onbeforedeactivate--->null
dir--->
aria-expanded--->
onkeydown--->null
nodeType--->1
ondragstart--->null
onscroll--->null
onpropertychange--->null
ondragenter--->null
id--->scroll
aria-level--->0
onrowsinserted--->null
scopeName--->HTML
lang--->
onmouseup--->null
aria-busy--->
oncontextmenu--->null
language--->
scrollTop--->0
offsetWidth--->859
onbeforeupdate--->null
onreadystatechange--->null
onmouseenter--->null
filters--->[object]
onresize--->null
isContentEditable--->false
aria-checked--->
aria-readonly--->
oncopy--->null
onselectstart--->null
scrollHeight--->18
onmove--->null
ondragend--->null
onrowexit--->null
lastChild--->[object]
aria-secret--->
onactivate--->null
canHaveChildren--->true
onfocus--->null
onfocusin--->null
isMultiLine--->true
onmouseover--->null
offsetTop--->15
oncut--->null
parentNode--->[object]
tagName--->DIV
className--->scroll
onmousemove--->null
title--->
role--->
behaviorUrns--->[object]
onfocusout--->null
onfilterchange--->null
disabled--->false
parentTextEdit--->[object]
ownerDocument--->[object]
offsetParent--->[object]
aria-posinset--->0
ondrop--->null
ondblclick--->null
onrowsdelete--->null
tabIndex--->0
onkeypress--->null
aria-relevant--->
onlosecapture--->null
innerText--->ee 
aria-live--->
parentElement--->[object]
ondeactivate--->null
aria-labelledby--->
aria-pressed--->
children--->[object]
ondatasetchanged--->null
ondataavailable--->null
aria-invalid--->
onafterupdate--->null
nodeValue--->null
onmousewheel--->null
onkeyup--->null
readyState--->complete
onmovestart--->null
aria-valuenow--->
aria-selected--->
onmouseout--->null
aria-owns--->
aria-valuemax--->
onmoveend--->null
contentEditable--->inherit
document--->[object]
firstChild--->[object]
sourceIndex--->7
outerText--->ee 
isTextEdit--->false
isDisabled--->false
oncellchange--->null
runtimeStyle--->[object]
scrollWidth--->859
aria-valuemin--->
onlayoutcomplete--->null
onhelp--->null
attributes--->[object]
offsetHeight--->18
onerrorupdate--->null
onmousedown--->null
clientTop--->0
aria-setsize--->0
clientWidth--->0
onpaste--->null
tagUrn--->
onmouseleave--->null
onclick--->null
outerHTML--->ee
ondrag--->null
aria-controls--->
onresizestart--->null
aria-flowto--->
ondatasetcomplete--->null
aria-required--->
clientLeft--->0
aria-describedby--->
all--->[object]
onbeforecut--->null
innerHTML--->ee 
aria-activedescendant--->
aria-multiselectable--->
offsetLeft--->10
align--->
dataSrc--->
dataFld--->
noWrap--->false
dataFormatAs--->
ta--->612
Category: Web编程 | Tags: javascript | Read Count: 1358

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com