DOM 物件的屬性分享

  1. 此網頁編碼:UTF-8
  2. 此網頁預設編碼:UTF-8
  3. 伺服器的領域名:class.vbird.tw
  4. 此網頁最後編輯時間:04/07/2025 01:43:18
  5. 此網頁文件來源:
  6. 此網頁 title:unit08-1-1
  7. 此網頁網址:https://class.vbird.tw/~4070c049/js/unit08-1-1.php

利用 for in 迴圈顯示出 document 的所有屬性

  1. location : https://class.vbird.tw/~4070c049/js/unit08-1-1.php
  2. implementation : [object DOMImplementation]
  3. URL : https://class.vbird.tw/~4070c049/js/unit08-1-1.php
  4. documentURI : https://class.vbird.tw/~4070c049/js/unit08-1-1.php
  5. compatMode : CSS1Compat
  6. characterSet : UTF-8
  7. charset : UTF-8
  8. inputEncoding : UTF-8
  9. contentType : text/html
  10. doctype : [object DocumentType]
  11. documentElement : [object HTMLHtmlElement]
  12. xmlEncoding : null
  13. xmlVersion : null
  14. xmlStandalone : false
  15. domain : class.vbird.tw
  16. referrer :
  17. cookie :
  18. lastModified : 04/07/2025 01:43:18
  19. readyState : complete
  20. title : unit08-1-1
  21. dir :
  22. body : [object HTMLBodyElement]
  23. head : [object HTMLHeadElement]
  24. images : [object HTMLCollection]
  25. embeds : [object HTMLCollection]
  26. plugins : [object HTMLCollection]
  27. links : [object HTMLCollection]
  28. forms : [object HTMLCollection]
  29. scripts : [object HTMLCollection]
  30. currentScript : null
  31. defaultView : [object Window]
  32. designMode : off
  33. onreadystatechange : null
  34. anchors : [object HTMLCollection]
  35. applets : [object HTMLCollection]
  36. fgColor :
  37. linkColor :
  38. vlinkColor :
  39. alinkColor :
  40. bgColor :
  41. all : [object HTMLAllCollection]
  42. scrollingElement : [object HTMLHtmlElement]
  43. onpointerlockchange : null
  44. onpointerlockerror : null
  45. hidden : false
  46. visibilityState : visible
  47. wasDiscarded : false
  48. prerendering : false
  49. featurePolicy : [object FeaturePolicy]
  50. webkitVisibilityState : visible
  51. webkitHidden : false
  52. onbeforecopy : null
  53. onbeforecut : null
  54. onbeforepaste : null
  55. onfreeze : null
  56. onprerenderingchange : null
  57. onresume : null
  58. onsearch : null
  59. onvisibilitychange : null
  60. timeline : [object DocumentTimeline]
  61. fullscreenEnabled : true
  62. fullscreen : false
  63. onfullscreenchange : null
  64. onfullscreenerror : null
  65. webkitIsFullScreen : false
  66. webkitCurrentFullScreenElement : null
  67. webkitFullscreenEnabled : true
  68. webkitFullscreenElement : null
  69. onwebkitfullscreenchange : null
  70. onwebkitfullscreenerror : null
  71. rootElement : null
  72. pictureInPictureEnabled : true
  73. onbeforexrselect : null
  74. onabort : null
  75. onbeforeinput : null
  76. onbeforematch : null
  77. onbeforetoggle : null
  78. onblur : null
  79. oncancel : null
  80. oncanplay : null
  81. oncanplaythrough : null
  82. onchange : null
  83. onclick : null
  84. onclose : null
  85. oncontentvisibilityautostatechange : null
  86. oncontextlost : null
  87. oncontextmenu : null
  88. oncontextrestored : null
  89. oncuechange : null
  90. ondblclick : null
  91. ondrag : null
  92. ondragend : null
  93. ondragenter : null
  94. ondragleave : null
  95. ondragover : null
  96. ondragstart : null
  97. ondrop : null
  98. ondurationchange : null
  99. onemptied : null
  100. onended : null
  101. onerror : null
  102. onfocus : null
  103. onformdata : null
  104. oninput : null
  105. oninvalid : null
  106. onkeydown : null
  107. onkeypress : null
  108. onkeyup : null
  109. onload : null
  110. onloadeddata : null
  111. onloadedmetadata : null
  112. onloadstart : null
  113. onmousedown : null
  114. onmouseenter : null
  115. onmouseleave : null
  116. onmousemove : null
  117. onmouseout : null
  118. onmouseover : null
  119. onmouseup : null
  120. onmousewheel : null
  121. onpause : null
  122. onplay : null
  123. onplaying : null
  124. onprogress : null
  125. onratechange : null
  126. onreset : null
  127. onresize : null
  128. onscroll : null
  129. onsecuritypolicyviolation : null
  130. onseeked : null
  131. onseeking : null
  132. onselect : null
  133. onslotchange : null
  134. onstalled : null
  135. onsubmit : null
  136. onsuspend : null
  137. ontimeupdate : null
  138. ontoggle : null
  139. onvolumechange : null
  140. onwaiting : null
  141. onwebkitanimationend : null
  142. onwebkitanimationiteration : null
  143. onwebkitanimationstart : null
  144. onwebkittransitionend : null
  145. onwheel : null
  146. onauxclick : null
  147. ongotpointercapture : null
  148. onlostpointercapture : null
  149. onpointerdown : null
  150. onpointermove : null
  151. onpointerrawupdate : null
  152. onpointerup : null
  153. onpointercancel : null
  154. onpointerover : null
  155. onpointerout : null
  156. onpointerenter : null
  157. onpointerleave : null
  158. onselectstart : null
  159. onselectionchange : null
  160. onanimationend : null
  161. onanimationiteration : null
  162. onanimationstart : null
  163. ontransitionrun : null
  164. ontransitionstart : null
  165. ontransitionend : null
  166. ontransitioncancel : null
  167. oncopy : null
  168. oncut : null
  169. onpaste : null
  170. children : [object HTMLCollection]
  171. firstElementChild : [object HTMLHtmlElement]
  172. lastElementChild : [object HTMLHtmlElement]
  173. childElementCount : 1
  174. activeElement : [object HTMLBodyElement]
  175. styleSheets : [object StyleSheetList]
  176. pointerLockElement : null
  177. fullscreenElement : null
  178. adoptedStyleSheets :
  179. pictureInPictureElement : null
  180. fonts : [object FontFaceSet]
  181. adoptNode : function adoptNode() { [native code] }
  182. append : function append() { [native code] }
  183. captureEvents : function captureEvents() { [native code] }
  184. caretRangeFromPoint : function caretRangeFromPoint() { [native code] }
  185. clear : function clear() { [native code] }
  186. close : function close() { [native code] }
  187. createAttribute : function createAttribute() { [native code] }
  188. createAttributeNS : function createAttributeNS() { [native code] }
  189. createCDATASection : function createCDATASection() { [native code] }
  190. createComment : function createComment() { [native code] }
  191. createDocumentFragment : function createDocumentFragment() { [native code] }
  192. createElement : function createElement() { [native code] }
  193. createElementNS : function createElementNS() { [native code] }
  194. createEvent : function createEvent() { [native code] }
  195. createExpression : function createExpression() { [native code] }
  196. createNSResolver : function createNSResolver() { [native code] }
  197. createNodeIterator : function createNodeIterator() { [native code] }
  198. createProcessingInstruction : function createProcessingInstruction() { [native code] }
  199. createRange : function createRange() { [native code] }
  200. createTextNode : function createTextNode() { [native code] }
  201. createTreeWalker : function createTreeWalker() { [native code] }
  202. elementFromPoint : function elementFromPoint() { [native code] }
  203. elementsFromPoint : function elementsFromPoint() { [native code] }
  204. evaluate : function evaluate() { [native code] }
  205. execCommand : function execCommand() { [native code] }
  206. exitFullscreen : function exitFullscreen() { [native code] }
  207. exitPictureInPicture : function exitPictureInPicture() { [native code] }
  208. exitPointerLock : function exitPointerLock() { [native code] }
  209. getAnimations : function getAnimations() { [native code] }
  210. getElementById : function getElementById() { [native code] }
  211. getElementsByClassName : function getElementsByClassName() { [native code] }
  212. getElementsByName : function getElementsByName() { [native code] }
  213. getElementsByTagName : function getElementsByTagName() { [native code] }
  214. getElementsByTagNameNS : function getElementsByTagNameNS() { [native code] }
  215. getSelection : function getSelection() { [native code] }
  216. hasFocus : function hasFocus() { [native code] }
  217. hasStorageAccess : function hasStorageAccess() { [native code] }
  218. hasUnpartitionedCookieAccess : function hasUnpartitionedCookieAccess() { [native code] }
  219. importNode : function importNode() { [native code] }
  220. open : function open() { [native code] }
  221. prepend : function prepend() { [native code] }
  222. queryCommandEnabled : function queryCommandEnabled() { [native code] }
  223. queryCommandIndeterm : function queryCommandIndeterm() { [native code] }
  224. queryCommandState : function queryCommandState() { [native code] }
  225. queryCommandSupported : function queryCommandSupported() { [native code] }
  226. queryCommandValue : function queryCommandValue() { [native code] }
  227. querySelector : function querySelector() { [native code] }
  228. querySelectorAll : function querySelectorAll() { [native code] }
  229. releaseEvents : function releaseEvents() { [native code] }
  230. replaceChildren : function replaceChildren() { [native code] }
  231. requestStorageAccess : function requestStorageAccess() { [native code] }
  232. requestStorageAccessFor : function requestStorageAccessFor() { [native code] }
  233. startViewTransition : function startViewTransition() { [native code] }
  234. webkitCancelFullScreen : function webkitCancelFullScreen() { [native code] }
  235. webkitExitFullscreen : function webkitExitFullscreen() { [native code] }
  236. write : function write() { [native code] }
  237. writeln : function writeln() { [native code] }
  238. fragmentDirective : [object FragmentDirective]
  239. browsingTopics : function browsingTopics() { [native code] }
  240. hasPrivateToken : function hasPrivateToken() { [native code] }
  241. hasRedemptionRecord : function hasRedemptionRecord() { [native code] }
  242. onscrollend : null
  243. onscrollsnapchange : null
  244. onscrollsnapchanging : null
  245. caretPositionFromPoint : function caretPositionFromPoint() { [native code] }
  246. nodeType : 9
  247. nodeName : #document
  248. baseURI : https://class.vbird.tw/~4070c049/js/unit08-1-1.php
  249. isConnected : true
  250. ownerDocument : null
  251. parentNode : null
  252. parentElement : null
  253. childNodes : [object NodeList]
  254. firstChild : [object DocumentType]
  255. lastChild : [object HTMLHtmlElement]
  256. previousSibling : null
  257. nextSibling : null
  258. nodeValue : null
  259. textContent : null
  260. ELEMENT_NODE : 1
  261. ATTRIBUTE_NODE : 2
  262. TEXT_NODE : 3
  263. CDATA_SECTION_NODE : 4
  264. ENTITY_REFERENCE_NODE : 5
  265. ENTITY_NODE : 6
  266. PROCESSING_INSTRUCTION_NODE : 7
  267. COMMENT_NODE : 8
  268. DOCUMENT_NODE : 9
  269. DOCUMENT_TYPE_NODE : 10
  270. DOCUMENT_FRAGMENT_NODE : 11
  271. NOTATION_NODE : 12
  272. DOCUMENT_POSITION_DISCONNECTED : 1
  273. DOCUMENT_POSITION_PRECEDING : 2
  274. DOCUMENT_POSITION_FOLLOWING : 4
  275. DOCUMENT_POSITION_CONTAINS : 8
  276. DOCUMENT_POSITION_CONTAINED_BY : 16
  277. DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : 32
  278. appendChild : function appendChild() { [native code] }
  279. cloneNode : function cloneNode() { [native code] }
  280. compareDocumentPosition : function compareDocumentPosition() { [native code] }
  281. contains : function contains() { [native code] }
  282. getRootNode : function getRootNode() { [native code] }
  283. hasChildNodes : function hasChildNodes() { [native code] }
  284. insertBefore : function insertBefore() { [native code] }
  285. isDefaultNamespace : function isDefaultNamespace() { [native code] }
  286. isEqualNode : function isEqualNode() { [native code] }
  287. isSameNode : function isSameNode() { [native code] }
  288. lookupNamespaceURI : function lookupNamespaceURI() { [native code] }
  289. lookupPrefix : function lookupPrefix() { [native code] }
  290. normalize : function normalize() { [native code] }
  291. removeChild : function removeChild() { [native code] }
  292. replaceChild : function replaceChild() { [native code] }
  293. addEventListener : function addEventListener() { [native code] }
  294. dispatchEvent : function dispatchEvent() { [native code] }
  295. removeEventListener : function removeEventListener() { [native code] }