Document class

Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.

MDN Reference

Implemented types
Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Document()
factory

Properties

activeElement Element?

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

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.
no setter
addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
addEventListener → ({void Function<K$>(DocumentEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2
no setter
addEventListener → ({void Function<K$>(GlobalEventHandlersEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Overload accessor: $1, $2
no setter
adoptedStyleSheets List<CSSStyleSheet>

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

MDN Reference
getter/setter pair
adoptNode ↔ T Function<T extends Node>(T)

Available on Document, provided by the Document$Typings extension

getter/setter pair
alinkColor String

Available on Document, provided by the Document$Typings extension

Sets or gets the color of all active links in the document. @deprecated
getter/setter pair
all HTMLAllCollection

Available on Document, provided by the Document$Typings extension

Returns a reference to the collection of elements contained by the object.
no setter
anchors HTMLCollectionOf<HTMLAnchorElement>

Available on Document, provided by the Document$Typings extension

Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
no setter
append ↔ void Function([Iterable?])

Available on ParentNode, provided by the ParentNode$Typings extension

getter/setter pair
appendChild ↔ T Function<T extends Node>(T)

Available on Node, provided by the Node$Typings extension

getter/setter pair
applets HTMLCollection

Available on Document, provided by the Document$Typings extension

Retrieves a collection of all applet objects in the document.
no setter
attributeNode num

Available on Node, provided by the Node$Typings extension

no setter
baseURI String

Available on Node, provided by the Node$Typings extension

Returns node's node document's document base URL.
no setter
bgColor String

Available on Document, provided by the Document$Typings extension

Deprecated. Sets or retrieves a value that indicates the background color behind the object. @deprecated
getter/setter pair
body HTMLElement

Available on Document, provided by the Document$Typings extension

Specifies the beginning and end of the document body.
getter/setter pair
captureEvents ↔ void Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
caretRangeFromPoint Range? Function(num, num)

Available on Document, provided by the Document$Typings extension

getter/setter pair
cdataSectionNode num

Available on Node, provided by the Node$Typings extension

node is a CDATASection node.
no setter
characterSet String

Available on Document, provided by the Document$Typings extension

Returns document's encoding.
no setter
charset String

Available on Document, provided by the Document$Typings extension

Gets or sets the character set used to encode the object.
no setter
childElementCount num

Available on ParentNode, provided by the ParentNode$Typings extension

MDN Reference
no setter
childNodes NodeListOf<ChildNode>

Available on Node, provided by the Node$Typings extension

Returns the children.
no setter
children HTMLCollection

Available on ParentNode, provided by the ParentNode$Typings extension

Returns the child elements.
no setter
clear ↔ void Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
cloneNode Node Function([bool?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
close ↔ void Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
commentNode num

Available on Node, provided by the Node$Typings extension

node is a Comment node.
no setter
compareDocumentPosition num Function(Node)

Available on Node, provided by the Node$Typings extension

getter/setter pair
compatMode String

Available on Document, provided by the Document$Typings extension

Gets a value that indicates whether standards-compliant mode is switched on for the object.
no setter
contains bool Function([Node?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
contentType String

Available on Document, provided by the Document$Typings extension

Returns document's content type.
no setter

Available on Document, provided by the Document$Typings extension

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.
getter/setter pair
createAttribute Attr Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
createAttributeNS Attr Function(String, [String?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
createCDATASection CDATASection Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
createComment Comment Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
createDocumentFragment DocumentFragment Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
createElement → ({K$ Function<K$ extends Element>(HTMLElementTagNameMap<K$> tagName, [ElementCreationOptions? options]) $1, K$ Function<K$ extends Element>(HTMLElementDeprecatedTagNameMap<K$> tagName, [ElementCreationOptions? options]) $2, HTMLElement Function(String tagName, [ElementCreationOptions? options]) $3})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2, $3
no setter
createElementNS → ({HTMLElement Function(String namespaceURI, String qualifiedName) $1, K$ Function<K$ extends SVGElement>(String namespaceURI, SVGElementTagNameMap<K$> qualifiedName) $2, SVGElement Function(String namespaceURI, String qualifiedName) $3, K$ Function<K$ extends Element>(String namespaceURI, MathMLElementTagNameMap<K$> qualifiedName) $4, MathMLElement Function(String namespaceURI, String qualifiedName) $5, Element Function(String? namespaceURI, String qualifiedName, [ElementCreationOptions? options]) $6, Element Function(String? namespace, String qualifiedName, [Object? options]) $7})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2, $3, $4, $5, $6, $7
no setter
createEvent → ({AnimationEvent Function(String eventInterface) $1, DeviceMotionEvent Function(String eventInterface) $10, DeviceOrientationEvent Function(String eventInterface) $11, DragEvent Function(String eventInterface) $12, ErrorEvent Function(String eventInterface) $13, Event Function(String eventInterface) $14, Event Function(String eventInterface) $15, FocusEvent Function(String eventInterface) $16, FontFaceSetLoadEvent Function(String eventInterface) $17, FormDataEvent Function(String eventInterface) $18, GamepadEvent Function(String eventInterface) $19, AnimationPlaybackEvent Function(String eventInterface) $2, HashChangeEvent Function(String eventInterface) $20, IDBVersionChangeEvent Function(String eventInterface) $21, InputEvent Function(String eventInterface) $22, KeyboardEvent Function(String eventInterface) $23, MIDIConnectionEvent Function(String eventInterface) $24, MIDIMessageEvent Function(String eventInterface) $25, MediaEncryptedEvent Function(String eventInterface) $26, MediaKeyMessageEvent Function(String eventInterface) $27, MediaQueryListEvent Function(String eventInterface) $28, MediaStreamTrackEvent Function(String eventInterface) $29, AudioProcessingEvent Function(String eventInterface) $3, MessageEvent Function(String eventInterface) $30, MouseEvent Function(String eventInterface) $31, MouseEvent Function(String eventInterface) $32, MutationEvent Function(String eventInterface) $33, MutationEvent Function(String eventInterface) $34, OfflineAudioCompletionEvent Function(String eventInterface) $35, PageTransitionEvent Function(String eventInterface) $36, PaymentMethodChangeEvent Function(String eventInterface) $37, PaymentRequestUpdateEvent Function(String eventInterface) $38, PictureInPictureEvent Function(String eventInterface) $39, BeforeUnloadEvent Function(String eventInterface) $4, PointerEvent Function(String eventInterface) $40, PopStateEvent Function(String eventInterface) $41, ProgressEvent<EventTarget> Function(String eventInterface) $42, PromiseRejectionEvent Function(String eventInterface) $43, RTCDTMFToneChangeEvent Function(String eventInterface) $44, RTCDataChannelEvent Function(String eventInterface) $45, RTCErrorEvent Function(String eventInterface) $46, RTCPeerConnectionIceErrorEvent Function(String eventInterface) $47, RTCPeerConnectionIceEvent Function(String eventInterface) $48, RTCTrackEvent Function(String eventInterface) $49, BlobEvent Function(String eventInterface) $5, SecurityPolicyViolationEvent Function(String eventInterface) $50, SpeechSynthesisErrorEvent Function(String eventInterface) $51, SpeechSynthesisEvent Function(String eventInterface) $52, StorageEvent Function(String eventInterface) $53, SubmitEvent Function(String eventInterface) $54, ToggleEvent Function(String eventInterface) $55, TouchEvent Function(String eventInterface) $56, TrackEvent Function(String eventInterface) $57, TransitionEvent Function(String eventInterface) $58, UIEvent Function(String eventInterface) $59, ClipboardEvent Function(String eventInterface) $6, UIEvent Function(String eventInterface) $60, WebGLContextEvent Function(String eventInterface) $61, WheelEvent Function(String eventInterface) $62, Event Function(String eventInterface) $63, CloseEvent Function(String eventInterface) $7, CompositionEvent Function(String eventInterface) $8, CustomEvent Function(String eventInterface) $9})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63
no setter
createExpression XPathExpression Function(String, [Object?])

Available on XPathEvaluatorBase, provided by the XPathEvaluatorBase$Typings extension

getter/setter pair
createNodeIterator NodeIterator Function(Node, [num?, Object?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
createNSResolver Node Function(Node)

Available on XPathEvaluatorBase, provided by the XPathEvaluatorBase$Typings extension

getter/setter pair
createProcessingInstruction ProcessingInstruction Function(String, String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
createRange Range Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
createTextNode Text Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
createTreeWalker TreeWalker Function(Node, [num?, Object?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
currentScript HTMLOrSVGScriptElement?

Available on Document, provided by the Document$Typings extension

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.
no setter
defaultView → _Intersection1?

Available on Document, provided by the Document$Typings extension

Returns the Window object of the active document.
no setter
designMode String

Available on Document, provided by the Document$Typings extension

Sets or gets a value that indicates whether the document can be edited.
getter/setter pair
dir String

Available on Document, provided by the Document$Typings extension

Sets or retrieves a value that indicates the reading order of the object.
getter/setter pair
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
doctype DocumentType?

Available on Document, provided by the Document$Typings extension

Gets an object representing the document type declaration associated with the current document.
no setter
documentElement HTMLElement

Available on Document, provided by the Document$Typings extension

Gets a reference to the root node of the document.
no setter
documentFragmentNode num

Available on Node, provided by the Node$Typings extension

node is a DocumentFragment node.
no setter
documentNode num

Available on Node, provided by the Node$Typings extension

node is a document.
no setter
documentPositionContainedBy num

Available on Node, provided by the Node$Typings extension

Set when other is a descendant of node.
no setter
documentPositionContains num

Available on Node, provided by the Node$Typings extension

Set when other is an ancestor of node.
no setter
documentPositionDisconnected num

Available on Node, provided by the Node$Typings extension

Set when node and other are not in the same tree.
no setter
documentPositionFollowing num

Available on Node, provided by the Node$Typings extension

Set when other is following node.
no setter
documentPositionImplementationSpecific num

Available on Node, provided by the Node$Typings extension

no setter
documentPositionPreceding num

Available on Node, provided by the Node$Typings extension

Set when other is preceding node.
no setter
documentTypeNode num

Available on Node, provided by the Node$Typings extension

node is a doctype.
no setter
documentURI String

Available on Document, provided by the Document$Typings extension

Returns document's URL.
no setter
domain String

Available on Document, provided by the Document$Typings extension

Sets or gets the security domain of the document. @deprecated
getter/setter pair
elementFromPoint Element? Function(num, num)

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

getter/setter pair
elementNode num

Available on Node, provided by the Node$Typings extension

node is an element.
no setter
elementsFromPoint List<Element> Function(num, num)

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

getter/setter pair
embeds HTMLCollectionOf<HTMLEmbedElement>

Available on Document, provided by the Document$Typings extension

Retrieves a collection of all embed objects in the document.
no setter
entityNode num

Available on Node, provided by the Node$Typings extension

no setter
entityReferenceNode num

Available on Node, provided by the Node$Typings extension

no setter
evaluate XPathResult Function(String, Node, [Object?, num?, XPathResult?])

Available on XPathEvaluatorBase, provided by the XPathEvaluatorBase$Typings extension

getter/setter pair
execCommand bool Function(String, [bool?, String?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
exitFullscreen Future<void> Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
exitPictureInPicture Future<void> Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
exitPointerLock ↔ void Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
fgColor String

Available on Document, provided by the Document$Typings extension

Sets or gets the foreground (text) color of the document. @deprecated
getter/setter pair
firstChild ChildNode?

Available on Node, provided by the Node$Typings extension

Returns the first child.
no setter
firstElementChild Element?

Available on ParentNode, provided by the ParentNode$Typings extension

Returns the first child that is an element, and null otherwise.
no setter
fonts FontFaceSet

Available on FontFaceSource, provided by the FontFaceSource$Typings extension

MDN Reference
no setter
forms HTMLCollectionOf<HTMLFormElement>

Available on Document, provided by the Document$Typings extension

Retrieves a collection, in source order, of all form objects in the document.
no setter
fullscreen bool

Available on Document, provided by the Document$Typings extension

no setter
fullscreenElement Element?

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

Returns document's fullscreen element.
no setter
fullscreenEnabled bool

Available on Document, provided by the Document$Typings extension

Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
no setter
getAnimations List<Animation> Function()

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

getter/setter pair
getElementById Element? Function(String)

Available on NonElementParentNode, provided by the NonElementParentNode$Typings extension

getter/setter pair
getElementById HTMLElement? Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
getElementsByClassName HTMLCollectionOf<Element> Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
getElementsByName NodeListOf<HTMLElement> Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
getElementsByTagName → ({HTMLCollectionOf<K$> Function<K$ extends Element>(HTMLElementTagNameMap<K$> qualifiedName) $1, HTMLCollectionOf<Element> Function(String qualifiedName) $2})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2
no setter
getElementsByTagNameNS → ({HTMLCollectionOf<HTMLElement> Function(String namespaceURI, String localName) $1, HTMLCollectionOf<SVGElement> Function(String namespaceURI, String localName) $2, HTMLCollectionOf<MathMLElement> Function(String namespaceURI, String localName) $3, HTMLCollectionOf<Element> Function(String localName, [String? namespace]) $4})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2, $3, $4
no setter
getRootNode Node Function([GetRootNodeOptions?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
getSelection Selection? Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
hasChildNodes bool Function()

Available on Node, provided by the Node$Typings extension

getter/setter pair
hasFocus bool Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasStorageAccess Future<bool> Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair

Available on Document, provided by the Document$Typings extension

Returns the head element.
no setter
hidden bool

Available on Document, provided by the Document$Typings extension

MDN Reference
no setter
images HTMLCollectionOf<HTMLImageElement>

Available on Document, provided by the Document$Typings extension

Retrieves a collection, in source order, of img objects in the document.
no setter
implementation DOMImplementation

Available on Document, provided by the Document$Typings extension

Gets the implementation object of the current document.
no setter
importNode ↔ T Function<T extends Node>(T, [bool?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
inputEncoding String

Available on Document, provided by the Document$Typings extension

Returns the character encoding used to create the webpage that is loaded into the document object.
no setter
insertBefore ↔ T Function<T extends Node>(T, [Node?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
isConnected bool

Available on Node, provided by the Node$Typings extension

Returns true if node is connected and false otherwise.
no setter
isDefaultNamespace bool Function([String?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
isEqualNode bool Function([Node?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
isSameNode bool Function([Node?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
lastChild ChildNode?

Available on Node, provided by the Node$Typings extension

Returns the last child.
no setter
lastElementChild Element?

Available on ParentNode, provided by the ParentNode$Typings extension

Returns the last child that is an element, and null otherwise.
no setter
lastModified String

Available on Document, provided by the Document$Typings extension

Gets the date that the page was last modified, if the page supplies one.
no setter
linkColor String

Available on Document, provided by the Document$Typings extension

Sets or gets the color of the document links. @deprecated
getter/setter pair

Available on Document, provided by the Document$Typings extension

Retrieves a collection of all a objects that specify the href property and all area objects in the document.
no setter
location Location

Available on Document, provided by the Document$Typings extension

Contains information about the current URL.
getter/setter pair
lookupNamespaceURI String? Function([String?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
lookupPrefix String? Function([String?])

Available on Node, provided by the Node$Typings extension

getter/setter pair
nextSibling ChildNode?

Available on Node, provided by the Node$Typings extension

Returns the next sibling.
no setter
nodeName String

Available on Node, provided by the Node$Typings extension

Returns a string appropriate for the type of node.
no setter
nodeType num

Available on Node, provided by the Node$Typings extension

Returns the type of node.
no setter
nodeValue String?

Available on Node, provided by the Node$Typings extension

MDN Reference
getter/setter pair
normalize ↔ void Function()

Available on Node, provided by the Node$Typings extension

getter/setter pair
notationNode num

Available on Node, provided by the Node$Typings extension

no setter
onabort ↔ dynamic Function(UIEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user aborts the download. @param ev The event.
getter/setter pair
onanimationcancel ↔ dynamic Function(AnimationEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onanimationend ↔ dynamic Function(AnimationEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onanimationiteration ↔ dynamic Function(AnimationEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onanimationstart ↔ dynamic Function(AnimationEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onauxclick ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onbeforeinput ↔ dynamic Function(InputEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onblur ↔ dynamic Function(FocusEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the object loses the input focus. @param ev The focus event.
getter/setter pair
oncancel ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oncanplay ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when playback is possible, but would require further buffering. @param ev The event.
getter/setter pair
oncanplaythrough ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onchange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the contents of the object or selection have changed. @param ev The event.
getter/setter pair
onclick ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user clicks the left mouse button on the object @param ev The mouse event.
getter/setter pair
onclose ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oncontextmenu ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user clicks the right mouse button in the client area, opening the context menu. @param ev The mouse event.
getter/setter pair
oncopy ↔ dynamic Function(ClipboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oncuechange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oncut ↔ dynamic Function(ClipboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ondblclick ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user double-clicks the object. @param ev The mouse event.
getter/setter pair
ondrag ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the source object continuously during a drag operation. @param ev The event.
getter/setter pair
ondragend ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the source object when the user releases the mouse at the close of a drag operation. @param ev The event.
getter/setter pair
ondragenter ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the target element when the user drags the object to a valid drop target. @param ev The drag event.
getter/setter pair
ondragleave ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. @param ev The drag event.
getter/setter pair
ondragover ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the target element continuously while the user drags the object over a valid drop target. @param ev The event.
getter/setter pair
ondragstart ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires on the source object when the user starts to drag a text selection or selected object. @param ev The event.
getter/setter pair
ondrop ↔ dynamic Function(DragEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ondurationchange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the duration attribute is updated. @param ev The event.
getter/setter pair
onemptied ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the media element is reset to its initial state. @param ev The event.
getter/setter pair
onended ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the end of playback is reached. @param ev The event
getter/setter pair
onerror OnErrorEventHandler?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when an error occurs during object loading. @param ev The event.
getter/setter pair
onfocus ↔ dynamic Function(FocusEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the object receives focus. @param ev The event.
getter/setter pair
onformdata ↔ dynamic Function(FormDataEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onfullscreenchange ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

MDN Reference
getter/setter pair
onfullscreenerror ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

MDN Reference
getter/setter pair
ongotpointercapture ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oninput ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
oninvalid ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onkeydown ↔ dynamic Function(KeyboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user presses a key. @param ev The keyboard event
getter/setter pair
onkeypress ↔ dynamic Function(KeyboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user presses an alphanumeric key. @param ev The event. @deprecated
getter/setter pair
onkeyup ↔ dynamic Function(KeyboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user releases a key. @param ev The keyboard event
getter/setter pair
onload ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires immediately after the browser loads the object. @param ev The event.
getter/setter pair
onloadeddata ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when media data is loaded at the current playback position. @param ev The event.
getter/setter pair
onloadedmetadata ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the duration and dimensions of the media have been determined. @param ev The event.
getter/setter pair
onloadstart ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when Internet Explorer begins looking for media data. @param ev The event.
getter/setter pair
onlostpointercapture ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onmousedown ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user clicks the object with either mouse button. @param ev The mouse event.
getter/setter pair
onmouseenter ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onmouseleave ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onmousemove ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user moves the mouse over the object. @param ev The mouse event.
getter/setter pair
onmouseout ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user moves the mouse pointer outside the boundaries of the object. @param ev The mouse event.
getter/setter pair
onmouseover ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user moves the mouse pointer into the object. @param ev The mouse event.
getter/setter pair
onmouseup ↔ dynamic Function(MouseEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user releases a mouse button while the mouse is over the object. @param ev The mouse event.
getter/setter pair
onpaste ↔ dynamic Function(ClipboardEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpause ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when playback is paused. @param ev The event.
getter/setter pair
onplay ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the play method is requested. @param ev The event.
getter/setter pair
onplaying ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the audio or video has started playing. @param ev The event.
getter/setter pair
onpointercancel ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerdown ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerenter ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerleave ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerlockchange ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

MDN Reference
getter/setter pair
onpointerlockerror ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

MDN Reference
getter/setter pair
onpointermove ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerout ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerover ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpointerup ↔ dynamic Function(PointerEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onprogress ↔ dynamic Function(ProgressEvent<EventTarget>)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs to indicate progress while downloading media data. @param ev The event.
getter/setter pair
onratechange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the playback rate is increased or decreased. @param ev The event.
getter/setter pair
onreadystatechange ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

Fires when the state of the object has changed. @param ev The event
getter/setter pair
onreset ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user resets a form. @param ev The event.
getter/setter pair
onresize ↔ dynamic Function(UIEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onscroll ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the user repositions the scroll box in the scroll bar on the object. @param ev The event.
getter/setter pair
onscrollend ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onsecuritypolicyviolation ↔ dynamic Function(SecurityPolicyViolationEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onseeked ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the seek operation ends. @param ev The event.
getter/setter pair
onseeking ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the current playback position is moved. @param ev The event.
getter/setter pair
onselect ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Fires when the current selection changes. @param ev The event.
getter/setter pair
onselectionchange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onselectstart ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onslotchange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onstalled ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the download has stopped. @param ev The event.
getter/setter pair
onsubmit ↔ dynamic Function(SubmitEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onsuspend ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs if the load operation has been intentionally halted. @param ev The event.
getter/setter pair
ontimeupdate ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs to indicate the current playback position. @param ev The event.
getter/setter pair
ontoggle ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontouchcancel ↔ dynamic Function(TouchEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontouchend ↔ dynamic Function(TouchEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontouchmove ↔ dynamic Function(TouchEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontouchstart ↔ dynamic Function(TouchEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontransitioncancel ↔ dynamic Function(TransitionEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontransitionend ↔ dynamic Function(TransitionEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontransitionrun ↔ dynamic Function(TransitionEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
ontransitionstart ↔ dynamic Function(TransitionEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
onvisibilitychange ↔ dynamic Function(Event)?

Available on Document, provided by the Document$Typings extension

MDN Reference
getter/setter pair
onvolumechange ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when the volume is changed, or playback is muted or unmuted. @param ev The event.
getter/setter pair
onwaiting ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Occurs when playback stops because the next frame of a video resource is not available. @param ev The event.
getter/setter pair
onwebkitanimationend ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

@deprecated This is a legacy alias of onanimationend.
getter/setter pair
onwebkitanimationiteration ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

@deprecated This is a legacy alias of onanimationiteration.
getter/setter pair
onwebkitanimationstart ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

@deprecated This is a legacy alias of onanimationstart.
getter/setter pair
onwebkittransitionend ↔ dynamic Function(Event)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

@deprecated This is a legacy alias of ontransitionend.
getter/setter pair
onwheel ↔ dynamic Function(WheelEvent)?

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

MDN Reference
getter/setter pair
open → ({Document Function([String? unused1, String? unused2]) $1, WindowProxy? Function(Object url, String name, String features) $2})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2
no setter
ownerDocument Document?

Available on Node, provided by the Node$Typings extension

Returns the node document. Returns null for documents.
no setter
ownerDocument → dynamic

Available on Document, provided by the Document$Typings extension

Returns the node document. Returns null for documents.
no setter
parentElement HTMLElement?

Available on Node, provided by the Node$Typings extension

Returns the parent element.
no setter
parentNode ParentNode?

Available on Node, provided by the Node$Typings extension

Returns the parent.
no setter
pictureInPictureElement Element?

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

MDN Reference
no setter
pictureInPictureEnabled bool

Available on Document, provided by the Document$Typings extension

MDN Reference
no setter
plugins HTMLCollectionOf<HTMLEmbedElement>

Available on Document, provided by the Document$Typings extension

Return an HTMLCollection of the embed elements in the Document.
no setter
pointerLockElement Element?

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

MDN Reference
no setter
prepend ↔ void Function([Iterable?])

Available on ParentNode, provided by the ParentNode$Typings extension

getter/setter pair
previousSibling ChildNode?

Available on Node, provided by the Node$Typings extension

Returns the previous sibling.
no setter
processingInstructionNode num

Available on Node, provided by the Node$Typings extension

node is a ProcessingInstruction node.
no setter
queryCommandEnabled bool Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
queryCommandIndeterm bool Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
queryCommandState bool Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
queryCommandSupported bool Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
queryCommandValue String Function(String)

Available on Document, provided by the Document$Typings extension

getter/setter pair
querySelector → ({K$? Function<K$ extends Element>(HTMLElementTagNameMap<K$> selectors) $1, E? Function<E extends Element>(String selectors) $2})

Available on ParentNode, provided by the ParentNode$Typings extension

Overload accessor: $1, $2
no setter
querySelectorAll → ({NodeListOf<K$> Function<K$ extends Element>(HTMLElementTagNameMap<K$> selectors) $1, NodeListOf<E> Function<E extends Element>(String selectors) $2})

Available on ParentNode, provided by the ParentNode$Typings extension

Overload accessor: $1, $2
no setter
readyState DocumentReadyState

Available on Document, provided by the Document$Typings extension

Retrieves a value that indicates the current state of the object.
no setter
referrer String

Available on Document, provided by the Document$Typings extension

Gets the URL of the location that referred the user to the current page.
no setter
releaseEvents ↔ void Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
removeChild ↔ T Function<T extends Node>(T)

Available on Node, provided by the Node$Typings extension

getter/setter pair
removeEventListener → ({void Function<K$>(DocumentEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on Document, provided by the Document$Typings extension

Overload accessor: $1, $2
no setter
removeEventListener → ({void Function<K$>(GlobalEventHandlersEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on GlobalEventHandlers, provided by the GlobalEventHandlers$Typings extension

Overload accessor: $1, $2
no setter
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
replaceChild ↔ T Function<T extends Node>(Node, T)

Available on Node, provided by the Node$Typings extension

getter/setter pair
replaceChildren ↔ void Function([Iterable?])

Available on ParentNode, provided by the ParentNode$Typings extension

getter/setter pair
requestStorageAccess Future<void> Function()

Available on Document, provided by the Document$Typings extension

getter/setter pair
rootElement SVGSVGElement?

Available on Document, provided by the Document$Typings extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scripts HTMLCollectionOf<HTMLScriptElement>

Available on Document, provided by the Document$Typings extension

Retrieves a collection of all script objects in the document.
no setter
scrollingElement Element?

Available on Document, provided by the Document$Typings extension

MDN Reference
no setter
styleSheets StyleSheetList

Available on DocumentOrShadowRoot, provided by the DocumentOrShadowRoot$Typings extension

Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
no setter
textContent String?

Available on Node, provided by the Node$Typings extension

MDN Reference
getter/setter pair
textNode num

Available on Node, provided by the Node$Typings extension

node is a Text node.
no setter
timeline DocumentTimeline

Available on Document, provided by the Document$Typings extension

MDN Reference
no setter
title String

Available on Document, provided by the Document$Typings extension

Contains the title of the document.
getter/setter pair
url String

Available on Document, provided by the Document$Typings extension

Sets or gets the URL for the current document.
no setter
visibilityState DocumentVisibilityState

Available on Document, provided by the Document$Typings extension

MDN Reference
no setter
vlinkColor String

Available on Document, provided by the Document$Typings extension

Sets or gets the color of the links that the user has visited. @deprecated
getter/setter pair
write ↔ void Function([Iterable?])

Available on Document, provided by the Document$Typings extension

getter/setter pair
writeln ↔ void Function([Iterable?])

Available on Document, provided by the Document$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited