Fires immediately after the browser loads the object.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadeddata
onloadeddata:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when media data is loaded at the current playback position.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadedmetadata
onloadedmetadata:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the duration and dimensions of the media have been determined.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadstart
onloadstart:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when Internet Explorer begins looking for media data.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onlostpointercapture
onlostpointercapture:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onmousedown
onmousedown:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user clicks the object with either mouse button.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseenter
onmouseenter:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
onmouseleave
onmouseleave:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
onmousemove
onmousemove:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user moves the mouse over the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseout
onmouseout:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user moves the mouse pointer outside the boundaries of the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseover
onmouseover:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user moves the mouse pointer into the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseup
onmouseup:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user releases a mouse button while the mouse is over the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onpaste
onpaste:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: ClipboardEvent
Returns any
onpause
onpause:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when playback is paused.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplay
onplay:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the play method is requested.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplaying
onplaying:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the audio or video has started playing.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onpointercancel
onpointercancel:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerdown
onpointerdown:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerenter
onpointerenter:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerleave
onpointerleave:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointermove
onpointermove:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerout
onpointerout:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerover
onpointerover:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerup
onpointerup:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onprogress
onprogress:((this, ev) => any)
Type declaration
(this, ev): any
Occurs to indicate progress while downloading media data.
Parameters
this: GlobalEventHandlers
ev: ProgressEvent<EventTarget>
The event.
Returns any
onratechange
onratechange:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the playback rate is increased or decreased.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onreset
onreset:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user resets a form.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onresize
onresize:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: UIEvent
Returns any
onscroll
onscroll:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the user repositions the scroll box in the scroll bar on the object.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsecuritypolicyviolation
onsecuritypolicyviolation:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: SecurityPolicyViolationEvent
Returns any
onseeked
onseeked:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the seek operation ends.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onseeking
onseeking:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the current playback position is moved.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselect
onselect:((this, ev) => any)
Type declaration
(this, ev): any
Fires when the current selection changes.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselectionchange
onselectionchange:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onselectstart
onselectstart:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onslotchange
onslotchange:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onstalled
onstalled:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the download has stopped.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsubmit
onsubmit:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: SubmitEvent
Returns any
onsuspend
onsuspend:((this, ev) => any)
Type declaration
(this, ev): any
Occurs if the load operation has been intentionally halted.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontimeupdate
ontimeupdate:((this, ev) => any)
Type declaration
(this, ev): any
Occurs to indicate the current playback position.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontoggle
ontoggle:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Optionalontouchcancel
ontouchcancel?:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optionalontouchend
ontouchend?:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optionalontouchmove
ontouchmove?:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optionalontouchstart
ontouchstart?:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
ontransitioncancel
ontransitioncancel:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionend
ontransitionend:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionrun
ontransitionrun:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionstart
ontransitionstart:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
onvolumechange
onvolumechange:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when the volume is changed, or playback is muted or unmuted.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwaiting
onwaiting:((this, ev) => any)
Type declaration
(this, ev): any
Occurs when playback stops because the next frame of a video resource is not available.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwebkitanimationend
onwebkitanimationend:((this, ev) => any)
Type declaration
(this, ev): any
Deprecated
This is a legacy alias of onanimationend.
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onwebkitanimationiteration
onwebkitanimationiteration:((this, ev) => any)
Type declaration
(this, ev): any
Deprecated
This is a legacy alias of onanimationiteration.
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onwebkitanimationstart
onwebkitanimationstart:((this, ev) => any)
Type declaration
(this, ev): any
Deprecated
This is a legacy alias of onanimationstart.
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onwebkittransitionend
onwebkittransitionend:((this, ev) => any)
Type declaration
(this, ev): any
Deprecated
This is a legacy alias of ontransitionend.
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onwheel
onwheel:((this, ev) => any)
Type declaration
(this, ev): any
Undocumented
Parameters
this: GlobalEventHandlers
ev: WheelEvent
Returns any
outerHTML
outerHTML:string
Undocumented
outerText
outerText:string
Undocumented
ReadonlyownerDocument
ownerDocument:Document
Undocumented
ReadonlyparentElement
parentElement:HTMLElement
Returns the parent element.
parentNode
parentNode:HTMLElement
Undocumented
Readonlypart
part:DOMTokenList
Undocumented
placeholder
placeholder:string
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.
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.
Readonlyvalidity
validity:ValidityState
Returns a ValidityState object that represents the validity states of an element.
value
value:string
Retrieves or sets the text in the entry field of the textArea element.
OptionalwasVisibleBeforeFullWindow
wasVisibleBeforeFullWindow?:boolean
Undocumented
ReadonlywillValidate
willValidate:boolean
Returns whether an element will successfully validate based on forms validation rules and constraints.
wrap
wrap:string
Sets or retrieves how to handle wordwrapping in the object.
Returns a bitmask indicating the position of other relative to node.
Parameters
other: Node
Returns number
contains
contains(other): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
other: Node
Returns boolean
dispatchEvent
dispatchEvent(event): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
event: Event
Returns boolean
focus
focus(options?): void
Undocumented
Parameters
Optionaloptions: FocusOptions
Returns void
getAnimations
getAnimations(options?): Animation[]
Undocumented
Parameters
Optionaloptions: GetAnimationsOptions
Returns Animation[]
getAttribute
getAttribute(qualifiedName): string
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
qualifiedName: string
Returns string
getAttributeNS
getAttributeNS(namespace, localName): string
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
namespace: string
localName: string
Returns string
getAttributeNames
getAttributeNames(): string[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Rest...nodes: (string | Node)[]
Returns void
replaceWith
replaceWith(...nodes): void
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Rest...nodes: (string | Node)[]
Returns void
reportValidity
reportValidity(): boolean
Undocumented
Returns boolean
requestFullscreen
requestFullscreen(options?): Promise<void>
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
Parameters
Optionaloptions: FullscreenOptions
Returns Promise<void>
requestPointerLock
requestPointerLock(): void
Undocumented
Returns void
scroll
scroll(options?): void
Undocumented
Parameters
Optionaloptions: ScrollToOptions
Returns void
scroll(x, y): void
Undocumented
Parameters
x: number
y: number
Returns void
scrollBy
scrollBy(options?): void
Undocumented
Parameters
Optionaloptions: ScrollToOptions
Returns void
scrollBy(x, y): void
Undocumented
Parameters
x: number
y: number
Returns void
scrollIntoView
scrollIntoView(arg?): void
Undocumented
Parameters
Optionalarg: boolean | ScrollIntoViewOptions
Returns void
scrollTo
scrollTo(options?): void
Undocumented
Parameters
Optionaloptions: ScrollToOptions
Returns void
scrollTo(x, y): void
Undocumented
Parameters
x: number
y: number
Returns void
select
select(): void
Highlights the input area of a form element.
Returns void
setAttribute
setAttribute(qualifiedName, value): void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
The direction in which the selection is performed.
Returns void
toggleAttribute
toggleAttribute(qualifiedName, force?): boolean
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
Provides special properties and methods for manipulating the layout and presentation of