Document
Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.
Inheritors
Properties
Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
Specifies the beginning and end of the document body.
node is a CDATASection node.
Returns document's encoding.
Returns the children.
Returns the child elements.
node is a Comment node.
Gets a value that indicates whether standards-compliant mode is switched on for the object.
Returns document's content type.
Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
Returns the Window object of the active document.
Sets or gets a value that indicates whether the document can be edited.
Gets an object representing the document type declaration associated with the current document.
node is a DocumentFragment node.
node is a document.
Set when other is a descendant of node.
Set when other is an ancestor of node.
Set when node and other are not in the same tree.
Set when other is following node.
Set when other is preceding node.
node is a doctype.
Gets a reference to the root node of the document.
Returns document's URL.
node is an element.
Retrieves a collection of all embed objects in the document.
Returns the first child.
Returns the first child that is an element, and null otherwise.
Retrieves a collection, in source order, of all form objects in the document.
Returns document's fullscreen element.
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
Returns the head element.
Retrieves a collection, in source order, of img objects in the document.
Gets the implementation object of the current document.
Returns true if node is connected and false otherwise.
Returns the last child that is an element, and null otherwise.
Gets the date that the page was last modified, if the page supplies one.
Retrieves a collection of all a objects that specify the href property and all area objects in the document.
Returns the next sibling.
Fires when the user aborts the download.
Fires when the object loses the input focus.
Occurs when playback is possible, but would require further buffering.
Fires when the contents of the object or selection have changed.
Fires when the user clicks the left mouse button on the object
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Fires when the user double-clicks the object.
Fires on the source object continuously during a drag operation.
Fires on the source object when the user releases the mouse at the close of a drag operation.
Fires on the target element when the user drags the object to a valid drop target.
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Fires on the target element continuously while the user drags the object over a valid drop target.
Fires on the source object when the user starts to drag a text selection or selected object.
Occurs when the duration attribute is updated.
Occurs when the media element is reset to its initial state.
Occurs when the end of playback is reached.
Fires when the object receives focus.
Fires when the user presses a key.
Fires when the user releases a key.
Fires immediately after the browser loads the object.
Occurs when media data is loaded at the current playback position.
Occurs when the duration and dimensions of the media have been determined.
Occurs when Internet Explorer begins looking for media data.
Fires when the user clicks the object with either mouse button.
Fires when the user moves the mouse over the object.
Fires when the user moves the mouse pointer outside the boundaries of the object.
Fires when the user moves the mouse pointer into the object.
Fires when the user releases a mouse button while the mouse is over the object.
Occurs when playback is paused.
Occurs when the play method is requested.
Occurs when the audio or video has started playing.
Occurs to indicate progress while downloading media data.
Occurs when the playback rate is increased or decreased.
Fires when the state of the object has changed.
Fires when the user resets a form.
Fires when the user repositions the scroll box in the scroll bar on the object.
Occurs when the seek operation ends.
Occurs when the current playback position is moved.
Fires when the current selection changes.
Occurs when the download has stopped.
Occurs if the load operation has been intentionally halted.
Occurs to indicate the current playback position.
Occurs when the volume is changed, or playback is muted or unmuted.
Occurs when playback stops because the next frame of a video resource is not available.
Returns the node document. Returns null for documents.
Returns the parent element.
Returns the parent.
Return an HTMLCollection of the embed elements in the Document.
Returns the previous sibling.
node is a ProcessingInstruction node.
Retrieves a value that indicates the current state of the object.
Retrieves a collection of all script objects in the document.
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
Functions
Returns a bitmask indicating the position of other relative to node.
Creates an attribute object with a specified name.
Returns a CDATASection node whose data is data.
Creates a comment object with the specified data.
Creates a new document.
Creates an instance of the element for the specified tag.
Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
Creates a text string from the specified value.
Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
Returns the element for the specified x coordinate and the specified y coordinate.
Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
Returns a reference to the first object with the specified value of the ID attribute.
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Gets a collection of objects based on the value of the NAME or ID attribute.
Retrieves a collection of objects based on the specified element name.
Returns node's root.
Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
Returns whether node has children.
Returns whether node and otherNode have the same properties.
Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
Returns the first element that is a descendant of node that matches selectors.
Returns all element descendants of node that match selectors.
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.