DOMAPI
Types
abstractRange
Record fields
alphaOption
animationPlayState
animationReplaceState
animationTimeline
Record fields
assignedNodesOptions
Record fields
flatten
attr
A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. See Attr on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autoFillBase
blobCallback
canPlayTypeResult
canvasContext2DAttributes
Record fields
alpha
colorspace
desynchronized
willReadFrequently
canvasRenderingContext2D
The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. See CanvasRenderingContext2D on MDN
Record fields
Module
There are methods and helpers defined in CanvasRenderingContext2D .
cdataSection
A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. See CDATASection on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
characterData
The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. See CharacterData on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in CharacterData .
checkVisibilityOptions
Record fields
checkOpacity
checkVisibilityCSS
contentVisibilityAuto
opacityProperty
visibilityProperty
colorSpaceConversion
comment
Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. See Comment on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Comment .
compositeOperation
computedEffectTiming
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
progress
currentIteration
startTime
endTime
activeDuration
localTime
cssRule
A single CSS rule. There are several types of rules, listed in the Type constants section below. See CSSRule on MDN
Record fields
cssRuleList
A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. See CSSRuleList on MDN
Record fields
cssStyleDeclaration
An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. See CSSStyleDeclaration on MDN
Record fields
cssStyleSheet
A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. See CSSStyleSheet on MDN
Record fields
cssStyleSheetInit
Record fields
baseURL
media
disabled
cssStyleValue
customElementConstructor
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
customStateSet
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. See Document on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the URL of the location that referred the user to the current page. Read more on MDN
cookie
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
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 null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Document .
documentFragment
A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. See DocumentFragment on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in DocumentFragment .
documentReadyState
documentTimelineOptions
Record fields
originTime
documentType
A Node containing a doctype. See DocumentType on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
documentVisibilityState
domImplementation
An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. See DOMImplementation on MDN
domMatrix
Record fields
domMatrix2DInit
Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
domMatrixInit
Record fields
a
b
c
d
e
f
m11
m12
m21
m22
m41
m42
m13
m14
m23
m24
m31
m32
m33
m34
m43
m44
is2D
domMatrixReadOnly
Record fields
domPoint
Record fields
domPointInit
Record fields
x
y
z
w
domPointReadOnly
Record fields
domRect
Record fields
domRectInit
Record fields
x
y
width
height
domRectList
domRectReadOnly
Record fields
domStringMap
Used by the dataset HTML attribute to represent data for custom attributes added to elements. See DOMStringMap on MDN
domTokenList
A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. See DOMTokenList on MDN
Record fields
value
Returns the associated set as string.
Can be set, to change the associated attribute. Read more on MDN
effectTiming
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
element
Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. See Element on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Element .
elementCreationOptions
Record fields
is
elementDefinitionOptions
Record fields
extends
elementInternals
Record fields
shadowRoot
Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. Read more on MDN
form
Returns the form owner of internals's target element. Read more on MDN
willValidate
Returns true if internals's target element will be validated when the form is submitted; false otherwise. Read more on MDN
validity
Returns the ValidityState object for internals's target element. Read more on MDN
validationMessage
Returns the error message that would be shown to the user if internals's target element was to be checked for validity. Read more on MDN
labels
Returns a NodeList of all the label elements that internals's target element is associated with. Read more on MDN
Module
There are methods and helpers defined in ElementInternals .
fileList
An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. See FileList on MDN
Record fields
Module
There are methods and helpers defined in FileList .
fileSystemEntriesCallback
fillMode
focusOptions
Record fields
preventScroll
fragmentDirective
frameRequestCallback
fullscreenNavigationUI
getAnimationsOptions
Record fields
subtree
getHTMLOptions
Record fields
serializableShadowRoots
shadowRoots
getRootNodeOptions
Record fields
composed
htmlAnchorElement
Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. See HTMLAnchorElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
protocol
Returns the hyperlink's URL's scheme.
Can be set, to change the URL's scheme. Read more on MDN
username
Returns the hyperlink's URL's username.
Can be set, to change the URL's username. Read more on MDN
password
Returns the hyperlink's URL's password.
Can be set, to change the URL's password. Read more on MDN
host
Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
Can be set, to change the URL's host and port. Read more on MDN
hostname
Returns the hyperlink's URL's host.
Can be set, to change the URL's host. Read more on MDN
port
Returns the hyperlink's URL's port.
Can be set, to change the URL's port. Read more on MDN
pathname
Returns the hyperlink's URL's path.
Can be set, to change the URL's path. Read more on MDN
search
Returns the hyperlink's URL's query (includes leading "?" if non-empty).
Can be set, to change the URL's query (ignores leading "?"). Read more on MDN
hash
Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
Can be set, to change the URL's fragment (ignores leading "#"). Read more on MDN
htmlAreaElement
Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. See HTMLAreaElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
protocol
Returns the hyperlink's URL's scheme.
Can be set, to change the URL's scheme. Read more on MDN
username
Returns the hyperlink's URL's username.
Can be set, to change the URL's username. Read more on MDN
password
Returns the hyperlink's URL's password.
Can be set, to change the URL's password. Read more on MDN
host
Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
Can be set, to change the URL's host and port. Read more on MDN
hostname
Returns the hyperlink's URL's host.
Can be set, to change the URL's host. Read more on MDN
port
Returns the hyperlink's URL's port.
Can be set, to change the URL's port. Read more on MDN
pathname
Returns the hyperlink's URL's path.
Can be set, to change the URL's path. Read more on MDN
search
Returns the hyperlink's URL's query (includes leading "?" if non-empty).
Can be set, to change the URL's query (ignores leading "?"). Read more on MDN
hash
Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
Can be set, to change the URL's fragment (ignores leading "#"). Read more on MDN
htmlAudioElement
Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. See HTMLAudioElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlBaseElement
Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. See HTMLBaseElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlBodyElement
Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. See HTMLBodyElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlbrElement
A HTML line break element (<br>). It inherits from HTMLElement. See HTMLBRElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlButtonElement
Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. See HTMLButtonElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlCanvasElement
Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. See HTMLCanvasElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlCollection
A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. See HTMLCollection on MDN
Record fields
htmlCollectionOf
Record fields
htmlDataElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. See HTMLDataElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDataListElement
Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. See HTMLDataListElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
options
Returns an HTMLCollection of the option elements of the datalist element. Read more on MDN
htmlDialogElement
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlDivElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. See HTMLDivElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmldListElement
Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. See HTMLDListElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlElement
Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. See HTMLElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlEmbedElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. See HTMLEmbedElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlFieldSetElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. See HTMLFieldSetElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
elements
Returns an HTMLCollection of the form controls in the element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlFormControlsCollection
A collection of HTML form control elements. See HTMLFormControlsCollection on MDN
Record fields
htmlFormElement
A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. See HTMLFormElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
acceptCharset
Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. Read more on MDN
action
Sets or retrieves the URL to which the form content is sent for processing. Read more on MDN
autocomplete
Specifies whether autocomplete is applied to an editable text field. Read more on MDN
elements
Retrieves a collection, in source order, of all controls in a given form. Read more on MDN
htmlFrameSetElement
Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. See HTMLFrameSetElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadElement
Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. See HTMLHeadElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHeadingElement
The different heading elements. It inherits methods and properties from the HTMLElement interface. See HTMLHeadingElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlhrElement
Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. See HTMLHRElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlHtmlElement
Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. See HTMLHtmlElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmliFrameElement
Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. See HTMLIFrameElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
htmlImageElement
Provides special properties and methods for manipulating <img> elements. See HTMLImageElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
useMap
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. Read more on MDN
loading
Sets or retrieves the policy for loading image elements that are outside the viewport. Read more on MDN
htmlInputElement
Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. See HTMLInputElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
autocomplete
Specifies whether autocomplete is applied to an editable text field. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element. Read more on MDN
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element. Read more on MDN
formMethod
Overrides the submit method attribute previously specified on a form element. Read more on MDN
indeterminate
When set, overrides the rendering of checkbox controls so that the current value is not visible. Read more on MDN
list
Specifies the ID of a pre-defined datalist of options for an input element. Read more on MDN
max
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
min
Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
pattern
Gets or sets a string containing a regular expression that the user's input must match. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
step
Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. Read more on MDN
valueAsDate
Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
selectionEnd
Gets or sets the end position or offset of a text selection. Read more on MDN
htmlLabelElement
Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. See HTMLLabelElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlFor
Sets or retrieves the object to which the given label object is assigned. Read more on MDN
control
Returns the form control that is associated with this element. Read more on MDN
htmlLegendElement
The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. See HTMLLegendElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
htmlliElement
Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. See HTMLLIElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlLinkElement
Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. See HTMLLinkElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rel
Sets or retrieves the relationship between the object and the destination of the link. Read more on MDN
htmlMapElement
Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. See HTMLMapElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
areas
Retrieves a collection of the area objects defined for the given map object. Read more on MDN
htmlMediaElement
Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. See HTMLMediaElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
htmlMenuElement
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlMetaElement
Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. See HTMLMetaElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
name
Sets or retrieves the value specified in the content attribute of the meta object. Read more on MDN
httpEquiv
Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. Read more on MDN
htmlMeterElement
The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. See HTMLMeterElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlModElement
Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. See HTMLModElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlObjectElement
Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. See HTMLObjectElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
contentDocument
Retrieves the document object of the page or frame. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmloListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. See HTMLOListElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlOptGroupElement
Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. See HTMLOptGroupElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
htmlOptionElement
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
label
Sets or retrieves a value that you can use to implement your own label functionality for the object. Read more on MDN
selected
Sets or retrieves whether the option in the list box is the default item. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
htmlOptionsCollection
HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. See HTMLOptionsCollection on MDN
Record fields
selectedIndex
Returns the index of the first selected item, if any, or −1 if there is no selected item.
Can be set, to change the selection. Read more on MDN
htmlOutputElement
Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. See HTMLOutputElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlParagraphElement
Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. See HTMLParagraphElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPictureElement
A <picture> HTML element. It doesn't implement specific properties or methods. See HTMLPictureElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlPreElement
Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). See HTMLPreElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlProgressElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. See HTMLProgressElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
value
Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. Read more on MDN
position
Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). Read more on MDN
htmlQuoteElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. See HTMLQuoteElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlScriptElement
HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). See HTMLScriptElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
src
Retrieves the URL to an external file that contains the source code or data. Read more on MDN
htmlSelectElement
A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. See HTMLSelectElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
type_
Retrieves the type of select control based on the value of the MULTIPLE attribute. Read more on MDN
options
Returns an HTMLOptionsCollection of the list of options. Read more on MDN
selectedIndex
Sets or retrieves the index of the selected option in a select object. Read more on MDN
value
Sets or retrieves the value which is returned to the server when the form control is submitted. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
htmlSlotElement
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSourceElement
Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. See HTMLSourceElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlSpanElement
A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLSpanElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlStyleElement
A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. See HTMLStyleElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCaptionElement
Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. See HTMLTableCaptionElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTableCellElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. See HTMLTableCellElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
colSpan
Sets or retrieves the number columns in the table that the object should span. Read more on MDN
headers
Sets or retrieves a list of header cells that provide information for the object. Read more on MDN
cellIndex
Retrieves the position of the object in the cells collection of a row. Read more on MDN
scope
Sets or retrieves the group of cells in a table to which the object's information applies. Read more on MDN
htmlTableElement
Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. See HTMLTableElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
tBodies
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTableRowElement
Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. See HTMLTableRowElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rowIndex
Retrieves the position of the object in the rows collection for the table. Read more on MDN
cells
Retrieves a collection of all cells in the table row. Read more on MDN
htmlTableSectionElement
Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. See HTMLTableSectionElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
rows
Sets or retrieves the number of horizontal rows contained in the object. Read more on MDN
htmlTemplateElement
Enables access to the contents of an HTML <template> element. See HTMLTemplateElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTextAreaElement
Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. See HTMLTextAreaElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
form
Retrieves a reference to the form that the object is embedded in. Read more on MDN
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control. Read more on MDN
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. Read more on MDN
readOnly
Sets or retrieves the value indicated whether the content of the object is read-only. Read more on MDN
required
When present, marks an element that can't be submitted without a value. Read more on MDN
value
Retrieves or sets the text in the entry field of the textArea element. Read more on MDN
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints. Read more on MDN
validity
Returns a ValidityState object that represents the validity states of an element. Read more on MDN
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. Read more on MDN
selectionStart
Gets or sets the starting position or offset of a text selection. Read more on MDN
htmlTimeElement
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. See HTMLTimeElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTitleElement
Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. See HTMLTitleElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlTrackElement
The HTMLTrackElement See HTMLTrackElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmluListElement
Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. See HTMLUListElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlUnknownElement
An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. See HTMLUnknownElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
htmlVideoElement
Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. See HTMLVideoElement on MDN
Record fields
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
error
Returns an object representing the current error state of the audio or video element. Read more on MDN
currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. Read more on MDN
preload
Gets or sets a value indicating what data should be preloaded, if any. Read more on MDN
duration
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. Read more on MDN
defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. Read more on MDN
playbackRate
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. Read more on MDN
seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. Read more on MDN
autoplay
Gets or sets a value that indicates whether to start playing the media automatically. Read more on MDN
loop
Gets or sets a flag to specify whether playback should restart after it completes. Read more on MDN
controls
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). Read more on MDN
volume
Gets or sets the volume level for audio portions of the media element. Read more on MDN
muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. Read more on MDN
videoWidth
Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
videoHeight
Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. Read more on MDN
poster
Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. Read more on MDN
idleRequestCallback
idleRequestOptions
Record fields
timeout
imageBitmapOptions
Record fields
imageOrientation
premultiplyAlpha
colorSpaceConversion
resizeWidth
resizeHeight
resizeQuality
imageBitmapSource
imageData
The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). See ImageData on MDN
Record fields
width
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
height
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
data
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. Read more on MDN
Module
There are methods and helpers defined in ImageData .
imageOrientation
insertPosition
iterationCompositeOperation
keyframeAnimationOptions
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
id
timeline
keyframeEffectOptions
Record fields
fill
iterationStart
iterations
direction
easing
delay
endDelay
playbackRate
duration
composite
pseudoElement
iterationComposite
location
The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. See Location on MDN
Record fields
href
Returns the Location object's URL.
Can be set, to navigate to the given URL. Read more on MDN
protocol
Returns the Location object's URL's scheme.
Can be set, to navigate to the same URL with a changed scheme. Read more on MDN
host
Returns the Location object's URL's host and port (if different from the default port for the scheme).
Can be set, to navigate to the same URL with a changed host and port. Read more on MDN
hostname
Returns the Location object's URL's host.
Can be set, to navigate to the same URL with a changed host. Read more on MDN
port
Returns the Location object's URL's port.
Can be set, to navigate to the same URL with a changed port. Read more on MDN
pathname
Returns the Location object's URL's path.
Can be set, to navigate to the same URL with a changed path. Read more on MDN
search
Returns the Location object's URL's query (includes leading "?" if non-empty).
Can be set, to navigate to the same URL with a changed query (ignores leading "?"). Read more on MDN
hash
Returns the Location object's URL's fragment (includes leading "#" if non-empty).
Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). Read more on MDN
ancestorOrigins
Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. Read more on MDN
Module
There are methods and helpers defined in Location .
mediaError
An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. See MediaError on MDN
Record fields
mediaProvider
mediaQueryList
Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). See MediaQueryList on MDN
Record fields
Module
There are methods and helpers defined in MediaQueryList .
mutationRecord
A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. See MutationRecord on MDN
Record fields
type_
Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. Read more on MDN
target
Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. Read more on MDN
previousSibling
Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN
nextSibling
Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. Read more on MDN
attributeName
Returns the local name of the changed attribute, and null otherwise. Read more on MDN
attributeNamespace
Returns the namespace of the changed attribute, and null otherwise. Read more on MDN
oldValue
The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. Read more on MDN
namedNodeMap
A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. See NamedNodeMap on MDN
Record fields
Module
There are methods and helpers defined in NamedNodeMap .
navigator
The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. See Navigator on MDN
Record fields
Module
There are methods and helpers defined in Navigator .
node
Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. See Node on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
Module
There are methods and helpers defined in Node .
nodeIterator
An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. See NodeIterator on MDN
Record fields
Module
There are methods and helpers defined in NodeIterator .
nodeList
NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). See NodeList on MDN
Record fields
Module
There are methods and helpers defined in NodeList .
offscreenRenderingContext
optionalEffectTiming
Record fields
delay
endDelay
fill
iterationStart
iterations
duration
direction
easing
playbackRate
orientationType
planeLayout
Record fields
offset
stride
playbackDirection
pointerLockOptions
Record fields
unadjustedMovement
predefinedColorSpace
premultiplyAlpha
processingInstruction
A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. See ProcessingInstruction on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
range
A fragment of a document that can contain nodes and parts of text nodes. See Range on MDN
Record fields
commonAncestorContainer
Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. Read more on MDN
Module
There are methods and helpers defined in Range .
referrerPolicy
remotePlaybackState
renderingContext
resizeQuality
screen
A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. See Screen on MDN
Record fields
scrollBehavior
scrollIntoViewOptions
Record fields
behavior
block
inline
scrollLogicalPosition
scrollToOptions
Record fields
behavior
left
top
selection
A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). See Selection on MDN
Record fields
Module
There are methods and helpers defined in Selection .
selectionMode
shadowRoot
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
Module
There are methods and helpers defined in ShadowRoot .
shadowRootInit
Record fields
mode
delegatesFocus
slotAssignment
serializable
shadowRootMode
shareData
Record fields
files
title
text
url
slotAssignmentMode
stylePropertyMapReadOnly
Record fields
Module
There are methods and helpers defined in StylePropertyMapReadOnly .
styleSheet
A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. See StyleSheet on MDN
Record fields
styleSheetList
A list of StyleSheet. See StyleSheetList on MDN
Record fields
Module
There are methods and helpers defined in StyleSheetList .
svgAnimatedLength
Used for attributes of basic type <length> which can be animated. See SVGAnimatedLength on MDN
Record fields
svgAnimatedPreserveAspectRatio
Used for attributes of type SVGPreserveAspectRatio which can be animated. See SVGAnimatedPreserveAspectRatio on MDN
svgBoundingBoxOptions
Record fields
fill
stroke
markers
clipped
svgElement
All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. See SVGElement on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgGraphicsElement
SVG elements whose primary purpose is to directly render graphics into a group. See SVGGraphicsElement on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgImageElement
Corresponds to the <image> element. See SVGImageElement on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
id
Returns the value of element's id content attribute. Can be set to change it. Read more on MDN
className
Returns the value of element's class content attribute. Can be set to change it. Read more on MDN
classList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. Read more on MDN
slot
Returns the value of element's slot content attribute. Can be set to change it. Read more on MDN
shadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
svgLength
Correspond to the <length> basic data type. See SVGLength on MDN
text
The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. See Text on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise. Read more on MDN
nextElementSibling
Returns the first following sibling that is an element, and null otherwise. Read more on MDN
Module
There are methods and helpers defined in Text .
timeRanges
Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. See TimeRanges on MDN
Record fields
Module
There are methods and helpers defined in TimeRanges .
timerHandler
treeWalker
The nodes of a document subtree and a position within them. See TreeWalker on MDN
Record fields
Module
There are methods and helpers defined in TreeWalker .
userActivation
Record fields
validityState
The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. See ValidityState on MDN
Record fields
validityStateFlags
Record fields
valueMissing
typeMismatch
patternMismatch
tooLong
tooShort
rangeUnderflow
rangeOverflow
stepMismatch
badInput
customError
vibratePattern
videoColorPrimaries
videoColorSpaceInit
Record fields
primaries
transfer
matrix
fullRange
videoFrameBufferInit
Record fields
format
codedWidth
codedHeight
timestamp
duration
layout
visibleRect
displayWidth
displayHeight
colorSpace
videoFrameCallbackMetadata
Record fields
presentationTime
expectedDisplayTime
width
height
mediaTime
presentedFrames
processingDuration
captureTime
receiveTime
rtpTimestamp
videoFrameCopyToOptions
Record fields
rect
layout
format
colorSpace
videoFrameInit
Record fields
duration
timestamp
alpha
visibleRect
displayWidth
displayHeight
videoFrameRequestCallback
videoMatrixCoefficients
videoPixelFormat
videoPlaybackQuality
Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. See VideoPlaybackQuality on MDN
Record fields
videoTransferCharacteristics
voidFunction
window
A window containing a DOM document; the document property points to the DOM document loaded in that window. See Window on MDN
Record fields
customElements
Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. Read more on MDN
locationbar
Returns true if the location bar is visible; otherwise, returns false. Read more on MDN
personalbar
Returns true if the personal bar is visible; otherwise, returns false. Read more on MDN
scrollbars
Returns true if the scrollbars are visible; otherwise, returns false. Read more on MDN
statusbar
Returns true if the status bar is visible; otherwise, returns false. Read more on MDN
parent
Refers to either the parent WindowProxy, or itself.
It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. Read more on MDN
Module
There are methods and helpers defined in Window .
windowPostMessageOptions
Record fields
transfer
targetOrigin
xmlDocument
An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. See XMLDocument on MDN
Record fields
ownerDocument
Returns the node document. Returns null for documents. Read more on MDN
implementation
Gets the implementation object of the current document. Read more on MDN
compatMode
Gets a value that indicates whether standards-compliant mode is switched on for the object. Read more on MDN
doctype
Gets an object representing the document type declaration associated with the current document. Read more on MDN
fullscreenEnabled
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. Read more on MDN
referrer
Gets the URL of the location that referred the user to the current page. Read more on MDN
cookie
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
Can be set, to add a new cookie to the element's set of HTTP cookies.
If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. Read more on MDN
lastModified
Gets the date that the page was last modified, if the page supplies one. Read more on MDN
readyState
Retrieves a value that indicates the current state of the object. Read more on MDN
dir
Sets or retrieves a value that indicates the reading order of the object. Read more on MDN
images
Retrieves a collection, in source order, of img objects in the document. Read more on MDN
embeds
Retrieves a collection of all embed objects in the document. Read more on MDN
plugins
Return an HTMLCollection of the embed elements in the Document. Read more on MDN
links
Retrieves a collection of all a objects that specify the href property and all area objects in the document. Read more on MDN
forms
Retrieves a collection, in source order, of all form objects in the document. Read more on MDN
scripts
Retrieves a collection of all script objects in the document. Read more on MDN
currentScript
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 null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. Read more on MDN
designMode
Sets or gets a value that indicates whether the document can be edited. Read more on MDN
styleSheets
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. Read more on MDN
activeElement
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.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. Read more on MDN
firstElementChild
Returns the first child that is an element, and null otherwise. Read more on MDN
lastElementChild
Returns the last child that is an element, and null otherwise. Read more on MDN
xPathExpression
This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. See XPathExpression on MDN
Module
There are methods and helpers defined in XPathExpression .
xPathNSResolver
xPathResult
The results generated by evaluating an XPath expression within the context of a given node. See XPathResult on MDN
Record fields
Module
There are methods and helpers defined in XPathResult .