Fires immediately after the browser loads the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadeddata
onloadeddata:((this, ev) => any)
Occurs when media data is loaded at the current playback position.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadedmetadata
onloadedmetadata:((this, ev) => any)
Occurs when the duration and dimensions of the media have been determined.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadstart
onloadstart:((this, ev) => any)
Occurs when Internet Explorer begins looking for media data.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onlostpointercapture
onlostpointercapture:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onmousedown
onmousedown:((this, ev) => any)
Fires when the user clicks the object with either mouse button.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseenter
onmouseenter:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
Undocumented
onmouseleave
onmouseleave:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
Undocumented
onmousemove
onmousemove:((this, ev) => any)
Fires when the user moves the mouse over the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseout
onmouseout:((this, ev) => any)
Fires when the user moves the mouse pointer outside the boundaries of the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseover
onmouseover:((this, ev) => any)
Fires when the user moves the mouse pointer into the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseup
onmouseup:((this, ev) => any)
Fires when the user releases a mouse button while the mouse is over the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onpaste
onpaste:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: ClipboardEvent
Returns any
Undocumented
onpause
onpause:((this, ev) => any)
Occurs when playback is paused.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplay
onplay:((this, ev) => any)
Occurs when the play method is requested.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplaying
onplaying:((this, ev) => any)
Occurs when the audio or video has started playing.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onpointercancel
onpointercancel:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerdown
onpointerdown:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerenter
onpointerenter:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerleave
onpointerleave:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointermove
onpointermove:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerout
onpointerout:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerover
onpointerover:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onpointerup
onpointerup:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
Undocumented
onprogress
onprogress:((this, ev) => any)
Occurs to indicate progress while downloading media data.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: ProgressEvent<EventTarget>
The event.
Returns any
onratechange
onratechange:((this, ev) => any)
Occurs when the playback rate is increased or decreased.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onreset
onreset:((this, ev) => any)
Fires when the user resets a form.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onresize
onresize:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: UIEvent
Returns any
Undocumented
onscroll
onscroll:((this, ev) => any)
Fires when the user repositions the scroll box in the scroll bar on the object.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsecuritypolicyviolation
onsecuritypolicyviolation:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: SecurityPolicyViolationEvent
Returns any
Undocumented
onseeked
onseeked:((this, ev) => any)
Occurs when the seek operation ends.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onseeking
onseeking:((this, ev) => any)
Occurs when the current playback position is moved.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselect
onselect:((this, ev) => any)
Fires when the current selection changes.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselectionchange
onselectionchange:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Undocumented
onselectstart
onselectstart:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Undocumented
onslotchange
onslotchange:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Undocumented
onstalled
onstalled:((this, ev) => any)
Occurs when the download has stopped.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsubmit
onsubmit:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: SubmitEvent
Returns any
Undocumented
onsuspend
onsuspend:((this, ev) => any)
Occurs if the load operation has been intentionally halted.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontimeupdate
ontimeupdate:((this, ev) => any)
Occurs to indicate the current playback position.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontoggle
ontoggle:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Undocumented
Optionalontouchcancel
ontouchcancel?:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Undocumented
Optionalontouchend
ontouchend?:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Undocumented
Optionalontouchmove
ontouchmove?:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Undocumented
Optionalontouchstart
ontouchstart?:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Undocumented
ontransitioncancel
ontransitioncancel:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
Undocumented
ontransitionend
ontransitionend:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
Undocumented
ontransitionrun
ontransitionrun:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
Undocumented
ontransitionstart
ontransitionstart:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
Undocumented
onvolumechange
onvolumechange:((this, ev) => any)
Occurs when the volume is changed, or playback is muted or unmuted.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwaiting
onwaiting:((this, ev) => any)
Occurs when playback stops because the next frame of a video resource is not available.
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwebkitanimationend
onwebkitanimationend:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of onanimationend.
onwebkitanimationiteration
onwebkitanimationiteration:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of onanimationiteration.
onwebkitanimationstart
onwebkitanimationstart:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of onanimationstart.
onwebkittransitionend
onwebkittransitionend:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of ontransitionend.
onwheel
onwheel:((this, ev) => any)
Type declaration
(this, ev): any
Parameters
this: GlobalEventHandlers
ev: WheelEvent
Returns any
Undocumented
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
Parameters
Optionaloptions: FocusOptions
Returns void
Undocumented
getAnimations
getAnimations(options?): Animation[]
Parameters
Optionaloptions: GetAnimationsOptions
Returns Animation[]
Undocumented
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
Returns boolean
Undocumented
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
Returns void
Undocumented
scroll
scroll(options?): void
Parameters
Optionaloptions: ScrollToOptions
Returns void
Undocumented
scroll(x, y): void
Parameters
x: number
y: number
Returns void
Undocumented
scrollBy
scrollBy(options?): void
Parameters
Optionaloptions: ScrollToOptions
Returns void
Undocumented
scrollBy(x, y): void
Parameters
x: number
y: number
Returns void
Undocumented
scrollIntoView
scrollIntoView(arg?): void
Parameters
Optionalarg: boolean | ScrollIntoViewOptions
Returns void
Undocumented
scrollTo
scrollTo(options?): void
Parameters
Optionaloptions: ScrollToOptions
Returns void
Undocumented
scrollTo(x, y): void
Parameters
x: number
y: number
Returns void
Undocumented
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