Advertisement
Web Developer Resources
You Are Here: ESQSoft.com ¬ javascript-help ¬ JavaScript Help: DOCUMENT Object
E.S.Q. Software Logo

Javascript Help: DOCUMENT Object

JavaScript can be used to access a number of DOM (Document Object Model) Objects. Here is the DOCUMENT object and it's internals.

#document
PropertyValue
locationhttps://esqsoft.com/javascript-help/javascript-document-object
implementation[object DOMImplementation]
URLhttps://esqsoft.com/javascript-help/javascript-document-object
documentURIhttps://esqsoft.com/javascript-help/javascript-document-object
compatModeCSS1Compat
characterSetUTF-8
charsetUTF-8
inputEncodingUTF-8
contentTypetext/html
doctype[object DocumentType]
documentElement[object HTMLHtmlElement]
xmlEncodingnull
xmlVersionnull
xmlStandalonefalse
domainesqsoft.com
referrer
cookiesc_is_visitor_unique=rx412504.1732254755.5E58E59D999E4E1E902A1FCE97446640.1.1.1.1.1.1.1.1.1
lastModified11/22/2024 05:52:36
readyStateloading
titleJavaScript Help: DOCUMENT Object
dir
body[object HTMLBodyElement]
head[object HTMLHeadElement]
images[object HTMLCollection]
embeds[object HTMLCollection]
plugins[object HTMLCollection]
links[object HTMLCollection]
forms[object HTMLCollection]
scripts[object HTMLCollection]
currentScript[object HTMLScriptElement]
defaultView[object Window]
designModeoff
onreadystatechangenull
anchors[object HTMLCollection]
applets[object HTMLCollection]
fgColor
linkColor
vlinkColor
alinkColor
bgColor
all[object HTMLAllCollection]
scrollingElement[object HTMLHtmlElement]
onpointerlockchangenull
onpointerlockerrornull
hiddenfalse
visibilityStatevisible
wasDiscardedfalse
prerenderingfalse
featurePolicy[object FeaturePolicy]
webkitVisibilityStatevisible
webkitHiddenfalse
onbeforecopynull
onbeforecutnull
onbeforepastenull
onfreezenull
onprerenderingchangenull
onresumenull
onsearchnull
onvisibilitychangenull
timeline[object DocumentTimeline]
fullscreenEnabledtrue
fullscreenfalse
onfullscreenchangenull
onfullscreenerrornull
webkitIsFullScreenfalse
webkitCurrentFullScreenElementnull
webkitFullscreenEnabledtrue
webkitFullscreenElementnull
onwebkitfullscreenchangenull
onwebkitfullscreenerrornull
rootElementnull
pictureInPictureEnabledtrue
onbeforexrselectnull
onabortnull
onbeforeinputnull
onbeforematchnull
onbeforetogglenull
onblurnull
oncancelnull
oncanplaynull
oncanplaythroughnull
onchangenull
onclicknull
onclosenull
oncontentvisibilityautostatechangenull
oncontextlostnull
oncontextmenunull
oncontextrestorednull
oncuechangenull
ondblclicknull
ondragnull
ondragendnull
ondragenternull
ondragleavenull
ondragovernull
ondragstartnull
ondropnull
ondurationchangenull
onemptiednull
onendednull
onerrornull
onfocusnull
onformdatanull
oninputnull
oninvalidnull
onkeydownnull
onkeypressnull
onkeyupnull
onloadnull
onloadeddatanull
onloadedmetadatanull
onloadstartnull
onmousedownnull
onmouseenternull
onmouseleavenull
onmousemovenull
onmouseoutnull
onmouseovernull
onmouseupnull
onmousewheelnull
onpausenull
onplaynull
onplayingnull
onprogressnull
onratechangenull
onresetnull
onresizenull
onscrollnull
onsecuritypolicyviolationnull
onseekednull
onseekingnull
onselectnull
onslotchangenull
onstallednull
onsubmitnull
onsuspendnull
ontimeupdatenull
ontogglenull
onvolumechangenull
onwaitingnull
onwebkitanimationendnull
onwebkitanimationiterationnull
onwebkitanimationstartnull
onwebkittransitionendnull
onwheelnull
onauxclicknull
ongotpointercapturenull
onlostpointercapturenull
onpointerdownnull
onpointermovenull
onpointerrawupdatenull
onpointerupnull
onpointercancelnull
onpointerovernull
onpointeroutnull
onpointerenternull
onpointerleavenull
onselectstartnull
onselectionchangenull
onanimationendnull
onanimationiterationnull
onanimationstartnull
ontransitionrunnull
ontransitionstartnull
ontransitionendnull
ontransitioncancelnull
oncopynull
oncutnull
onpastenull
children[object HTMLCollection]
firstElementChild[object HTMLHtmlElement]
lastElementChild[object HTMLHtmlElement]
childElementCount1
activeElement[object HTMLBodyElement]
styleSheets[object StyleSheetList]
pointerLockElementnull
fullscreenElementnull
adoptedStyleSheets
pictureInPictureElementnull
fonts[object FontFaceSet]
adoptNodefunction adoptNode() { [native code] }
appendfunction append() { [native code] }
captureEventsfunction captureEvents() { [native code] }
caretRangeFromPointfunction caretRangeFromPoint() { [native code] }
clearfunction clear() { [native code] }
closefunction close() { [native code] }
createAttributefunction createAttribute() { [native code] }
createAttributeNSfunction createAttributeNS() { [native code] }
createCDATASectionfunction createCDATASection() { [native code] }
createCommentfunction createComment() { [native code] }
createDocumentFragmentfunction createDocumentFragment() { [native code] }
createElementfunction createElement() { [native code] }
createElementNSfunction createElementNS() { [native code] }
createEventfunction createEvent() { [native code] }
createExpressionfunction createExpression() { [native code] }
createNSResolverfunction createNSResolver() { [native code] }
createNodeIteratorfunction createNodeIterator() { [native code] }
createProcessingInstructionfunction createProcessingInstruction() { [native code] }
createRangefunction createRange() { [native code] }
createTextNodefunction createTextNode() { [native code] }
createTreeWalkerfunction createTreeWalker() { [native code] }
elementFromPointfunction elementFromPoint() { [native code] }
elementsFromPointfunction elementsFromPoint() { [native code] }
evaluatefunction evaluate() { [native code] }
execCommandfunction execCommand() { [native code] }
exitFullscreenfunction exitFullscreen() { [native code] }
exitPictureInPicturefunction exitPictureInPicture() { [native code] }
exitPointerLockfunction exitPointerLock() { [native code] }
getAnimationsfunction getAnimations() { [native code] }
getElementByIdfunction getElementById() { [native code] }
getElementsByClassNamefunction getElementsByClassName() { [native code] }
getElementsByNamefunction getElementsByName() { [native code] }
getElementsByTagNamefunction getElementsByTagName() { [native code] }
getElementsByTagNameNSfunction getElementsByTagNameNS() { [native code] }
getSelectionfunction getSelection() { [native code] }
hasFocusfunction hasFocus() { [native code] }
hasStorageAccessfunction hasStorageAccess() { [native code] }
hasUnpartitionedCookieAccessfunction hasUnpartitionedCookieAccess() { [native code] }
importNodefunction importNode() { [native code] }
openfunction open() { [native code] }
prependfunction prepend() { [native code] }
queryCommandEnabledfunction queryCommandEnabled() { [native code] }
queryCommandIndetermfunction queryCommandIndeterm() { [native code] }
queryCommandStatefunction queryCommandState() { [native code] }
queryCommandSupportedfunction queryCommandSupported() { [native code] }
queryCommandValuefunction queryCommandValue() { [native code] }
querySelectorfunction querySelector() { [native code] }
querySelectorAllfunction querySelectorAll() { [native code] }
releaseEventsfunction releaseEvents() { [native code] }
replaceChildrenfunction replaceChildren() { [native code] }
requestStorageAccessfunction requestStorageAccess() { [native code] }
requestStorageAccessForfunction requestStorageAccessFor() { [native code] }
startViewTransitionfunction startViewTransition() { [native code] }
webkitCancelFullScreenfunction webkitCancelFullScreen() { [native code] }
webkitExitFullscreenfunction webkitExitFullscreen() { [native code] }
writefunction write() { [native code] }
writelnfunction writeln() { [native code] }
fragmentDirective[object FragmentDirective]
browsingTopicsfunction browsingTopics() { [native code] }
hasPrivateTokenfunction hasPrivateToken() { [native code] }
hasRedemptionRecordfunction hasRedemptionRecord() { [native code] }
onscrollendnull
onscrollsnapchangenull
onscrollsnapchangingnull
caretPositionFromPointfunction caretPositionFromPoint() { [native code] }
nodeType9
nodeName#document
baseURIhttps://esqsoft.com/javascript-help/javascript-document-object
isConnectedtrue
ownerDocumentnull
parentNodenull
parentElementnull
childNodes[object NodeList]
firstChild[object DocumentType]
lastChild[object HTMLHtmlElement]
previousSiblingnull
nextSiblingnull
nodeValuenull
textContentnull
ELEMENT_NODE1
ATTRIBUTE_NODE2
TEXT_NODE3
CDATA_SECTION_NODE4
ENTITY_REFERENCE_NODE5
ENTITY_NODE6
PROCESSING_INSTRUCTION_NODE7
COMMENT_NODE8
DOCUMENT_NODE9
DOCUMENT_TYPE_NODE10
DOCUMENT_FRAGMENT_NODE11
NOTATION_NODE12
DOCUMENT_POSITION_DISCONNECTED1
DOCUMENT_POSITION_PRECEDING2
DOCUMENT_POSITION_FOLLOWING4
DOCUMENT_POSITION_CONTAINS8
DOCUMENT_POSITION_CONTAINED_BY16
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC32
appendChildfunction appendChild() { [native code] }
cloneNodefunction cloneNode() { [native code] }
compareDocumentPositionfunction compareDocumentPosition() { [native code] }
containsfunction contains() { [native code] }
getRootNodefunction getRootNode() { [native code] }
hasChildNodesfunction hasChildNodes() { [native code] }
insertBeforefunction insertBefore() { [native code] }
isDefaultNamespacefunction isDefaultNamespace() { [native code] }
isEqualNodefunction isEqualNode() { [native code] }
isSameNodefunction isSameNode() { [native code] }
lookupNamespaceURIfunction lookupNamespaceURI() { [native code] }
lookupPrefixfunction lookupPrefix() { [native code] }
normalizefunction normalize() { [native code] }
removeChildfunction removeChild() { [native code] }
replaceChildfunction replaceChild() { [native code] }
addEventListenerfunction addEventListener() { [native code] }
dispatchEventfunction dispatchEvent() { [native code] }
removeEventListenerfunction removeEventListener() { [native code] }
Script: Expose (expose DOM element) -- << click here to copy code >>
More Web Stuff: Tools, How-To, Design, Games, Hosting @ http://www.esqsoft.com

Tip: This example uses a small script library to expose the properties and methods of a passed object. You can use it from where it lives on the web during your own development, or download it and tweak to suite your needs. View the source of expose.js for additional info. Here's an example of it's usage:

<script src="https://esqsoft.com/tools/expose.js"></script> <script>expose(document)</script>

Related Keywords: javascript, document, object, expose, method

Advertisement
Advertisement
StatCounter - Free Web Tracker and Counter