HTMLButtonElement
Values
addEventListener
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. Read more on MDN
let addEventListener: ( DomTypes.htmlButtonElement, EventTypes.eventType, EventTypes.eventListener<'event>, ~options: EventTypes.addEventListenerOptions=?,) => unitParameters
DomTypes.htmlButtonElement EventTypes.eventType EventTypes.eventListener option< EventTypes.addEventListenerOptions >Return type
unitaddEventListenerWithCapture
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. Read more on MDN
let addEventListenerWithCapture: ( DomTypes.htmlButtonElement, EventTypes.eventType, EventTypes.eventListener<'event>,) => unitParameters
DomTypes.htmlButtonElement EventTypes.eventType EventTypes.eventListenerReturn type
unitafter
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let after: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitafter2
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let after2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitanimate
let animate: ( DomTypes.htmlButtonElement, ~keyframes: unknown, ~options: float=?,) => DomTypes.animationParameters
DomTypes.htmlButtonElement unknown option< float >Return type
DomTypes.animationanimate2
let animate2: ( DomTypes.htmlButtonElement, ~keyframes: unknown, ~options: DomTypes.keyframeAnimationOptions=?,) => DomTypes.animationParameters
DomTypes.htmlButtonElement unknown option< DomTypes.keyframeAnimationOptions >Return type
DomTypes.animationappend
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let append: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitappend2
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let append2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitasElement
let asElement: DomTypes.htmlButtonElement => DomTypes.elementParameters
DomTypes.htmlButtonElementReturn type
DomTypes.elementasEventTarget
let asEventTarget: DomTypes.htmlButtonElement => EventTypes.eventTargetParameters
DomTypes.htmlButtonElementReturn type
EventTypes.eventTargetasHTMLElement
let asHTMLElement: DomTypes.htmlButtonElement => HTMLElement.tParameters
DomTypes.htmlButtonElementReturn type
HTMLElement.tasNode
let asNode: DomTypes.htmlButtonElement => DomTypes.nodeParameters
DomTypes.htmlButtonElementReturn type
DomTypes.nodeattachInternals
let attachInternals: DomTypes.htmlButtonElement => DomTypes.elementInternalsParameters
DomTypes.htmlButtonElementReturn type
DomTypes.elementInternalsattachShadow
Creates a shadow root for element and returns it. Read more on MDN
let attachShadow: ( DomTypes.htmlButtonElement, DomTypes.shadowRootInit,) => DomTypes.shadowRootParameters
DomTypes.htmlButtonElement DomTypes.shadowRootInitReturn type
DomTypes.shadowRootbefore
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let before: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitbefore2
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let before2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitblur
let blur: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitcheckValidity
Returns whether a form will validate when it is submitted, without having to submit it. Read more on MDN
let checkValidity: DomTypes.htmlButtonElement => boolParameters
DomTypes.htmlButtonElementReturn type
boolcheckVisibility
let checkVisibility: ( DomTypes.htmlButtonElement, ~options: DomTypes.checkVisibilityOptions=?,) => boolParameters
DomTypes.htmlButtonElement option< DomTypes.checkVisibilityOptions >Return type
boolclick
let click: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitcloneNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants. Read more on MDN
let cloneNode: ( DomTypes.htmlButtonElement, ~deep: bool=?,) => DomTypes.htmlButtonElementParameters
DomTypes.htmlButtonElement option< bool >Return type
DomTypes.htmlButtonElementclosest
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. Read more on MDN
let closest: (DomTypes.htmlButtonElement, string) => 'eParameters
DomTypes.htmlButtonElementReturn type
stringcompareDocumentPosition
Returns a bitmask indicating the position of other relative to node. Read more on MDN
let compareDocumentPosition: (DomTypes.htmlButtonElement, DomTypes.node) => intParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
intcomputedStyleMap
let computedStyleMap: DomTypes.htmlButtonElement => DomTypes.stylePropertyMapReadOnlyParameters
DomTypes.htmlButtonElementReturn type
DomTypes.stylePropertyMapReadOnlycontains
Returns true if other is an inclusive descendant of node, and false otherwise. Read more on MDN
let contains: (DomTypes.htmlButtonElement, DomTypes.node) => boolParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
booldispatchEvent
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. Read more on MDN
let dispatchEvent: (DomTypes.htmlButtonElement, EventTypes.event) => boolParameters
DomTypes.htmlButtonElement EventTypes.eventReturn type
boolfocus
let focus: ( DomTypes.htmlButtonElement, ~options: DomTypes.focusOptions=?,) => unitParameters
DomTypes.htmlButtonElement option< DomTypes.focusOptions >Return type
unitgetAnimations
let getAnimations: ( DomTypes.htmlButtonElement, ~options: DomTypes.getAnimationsOptions=?,) => array<DomTypes.animation>Parameters
DomTypes.htmlButtonElement option< DomTypes.getAnimationsOptions >Return type
array< DomTypes.animation >getAttribute
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. Read more on MDN
let getAttribute: (DomTypes.htmlButtonElement, string) => null<string>Parameters
DomTypes.htmlButtonElement stringReturn type
Stdlib.null< string >getAttributeNames
Returns the qualified names of all element's attributes. Can contain duplicates. Read more on MDN
let getAttributeNames: DomTypes.htmlButtonElement => array<string>Parameters
DomTypes.htmlButtonElementReturn type
array< string >getAttributeNode
let getAttributeNode: (DomTypes.htmlButtonElement, string) => DomTypes.attrParameters
DomTypes.htmlButtonElement stringReturn type
DomTypes.attrgetAttributeNodeNS
let getAttributeNodeNS: ( DomTypes.htmlButtonElement, ~namespace: string, ~localName: string,) => DomTypes.attrParameters
DomTypes.htmlButtonElement string stringReturn type
DomTypes.attrgetAttributeNS
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. Read more on MDN
let getAttributeNS: ( DomTypes.htmlButtonElement, ~namespace: string, ~localName: string,) => stringParameters
DomTypes.htmlButtonElement string stringReturn type
stringgetBoundingClientRect
let getBoundingClientRect: DomTypes.htmlButtonElement => DomTypes.domRectParameters
DomTypes.htmlButtonElementReturn type
DomTypes.domRectgetClientRects
let getClientRects: DomTypes.htmlButtonElement => DomTypes.domRectListParameters
DomTypes.htmlButtonElementReturn type
DomTypes.domRectListgetElementsByClassName
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. Read more on MDN
let getElementsByClassName: ( DomTypes.htmlButtonElement, string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.htmlButtonElement stringReturn type
DomTypes.htmlCollection< DomTypes.element >getElementsByTagName
let getElementsByTagName: ( DomTypes.htmlButtonElement, string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.htmlButtonElement stringReturn type
DomTypes.htmlCollection< DomTypes.element >getElementsByTagNameNS
let getElementsByTagNameNS: ( DomTypes.element, ~namespace: string, ~localName: string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.element string stringReturn type
DomTypes.htmlCollection< DomTypes.element >getHTML
let getHTML: ( DomTypes.htmlButtonElement, ~options: DomTypes.getHTMLOptions=?,) => stringParameters
DomTypes.htmlButtonElement option< DomTypes.getHTMLOptions >Return type
stringgetRootNode
Returns node's root. Read more on MDN
let getRootNode: ( DomTypes.htmlButtonElement, ~options: DomTypes.getRootNodeOptions=?,) => DomTypes.nodeParameters
DomTypes.htmlButtonElement option< DomTypes.getRootNodeOptions >Return type
DomTypes.nodehasAttribute
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. Read more on MDN
let hasAttribute: (DomTypes.htmlButtonElement, string) => boolParameters
DomTypes.htmlButtonElement stringReturn type
boolhasAttributeNS
Returns true if element has an attribute whose namespace is namespace and local name is localName. Read more on MDN
let hasAttributeNS: ( DomTypes.htmlButtonElement, ~namespace: string, ~localName: string,) => boolParameters
DomTypes.htmlButtonElement string stringReturn type
boolhasAttributes
Returns true if element has attributes, and false otherwise. Read more on MDN
let hasAttributes: DomTypes.htmlButtonElement => boolParameters
DomTypes.htmlButtonElementReturn type
boolhasChildNodes
Returns whether node has children. Read more on MDN
let hasChildNodes: DomTypes.htmlButtonElement => boolParameters
DomTypes.htmlButtonElementReturn type
boolhasPointerCapture
let hasPointerCapture: (DomTypes.htmlButtonElement, int) => boolParameters
DomTypes.htmlButtonElement intReturn type
boolhidePopover
let hidePopover: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitinsertAdjacentElement
let insertAdjacentElement: ( DomTypes.htmlButtonElement, ~where: DomTypes.insertPosition, ~element: DomTypes.element,) => DomTypes.elementParameters
DomTypes.htmlButtonElement DomTypes.insertPosition DomTypes.elementReturn type
DomTypes.elementinsertAdjacentHTML
let insertAdjacentHTML: ( DomTypes.htmlButtonElement, ~position: DomTypes.insertPosition, ~string: string,) => unitParameters
DomTypes.htmlButtonElement DomTypes.insertPosition stringReturn type
unitinsertAdjacentText
let insertAdjacentText: ( DomTypes.htmlButtonElement, ~where: DomTypes.insertPosition, ~data: string,) => unitParameters
DomTypes.htmlButtonElement DomTypes.insertPosition stringReturn type
unitinsertBefore
let insertBefore: ( DomTypes.htmlButtonElement, 't, ~child: DomTypes.node,) => 'tParameters
DomTypes.htmlButtonElementReturn type
DomTypes.nodeisDefaultNamespace
let isDefaultNamespace: (DomTypes.htmlButtonElement, string) => boolParameters
DomTypes.htmlButtonElement stringReturn type
boolisEqualNode
Returns whether node and otherNode have the same properties. Read more on MDN
let isEqualNode: (DomTypes.htmlButtonElement, DomTypes.node) => boolParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
boolisSameNode
let isSameNode: (DomTypes.htmlButtonElement, DomTypes.node) => boolParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
boollookupNamespaceURI
let lookupNamespaceURI: (DomTypes.htmlButtonElement, string) => stringParameters
DomTypes.htmlButtonElement stringReturn type
stringlookupPrefix
let lookupPrefix: (DomTypes.htmlButtonElement, string) => stringParameters
DomTypes.htmlButtonElement stringReturn type
stringmatches
Returns true if matching selectors against element's root yields element, and false otherwise. Read more on MDN
let matches: (DomTypes.htmlButtonElement, string) => boolParameters
DomTypes.htmlButtonElement stringReturn type
boolnormalize
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. Read more on MDN
let normalize: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitprepend
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let prepend: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitprepend2
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let prepend2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitquerySelector
Returns the first element that is a descendant of node that matches selectors. Read more on MDN
let querySelector: ( DomTypes.htmlButtonElement, string,) => Null.t<DomTypes.element>Parameters
DomTypes.htmlButtonElement stringReturn type
Stdlib.Null.t< DomTypes.element >querySelectorAll
Returns all element descendants of node that match selectors. Read more on MDN
let querySelectorAll: ( DomTypes.htmlButtonElement, string,) => DomTypes.nodeList<DomTypes.element>Parameters
DomTypes.htmlButtonElement stringReturn type
DomTypes.nodeList< DomTypes.element >releasePointerCapture
let releasePointerCapture: (DomTypes.htmlButtonElement, int) => unitParameters
DomTypes.htmlButtonElement intReturn type
unitremove
Removes node. Read more on MDN
let remove: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitremoveAttribute
Removes element's first attribute whose qualified name is qualifiedName. Read more on MDN
let removeAttribute: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitremoveAttributeNode
let removeAttributeNode: (DomTypes.htmlButtonElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlButtonElement DomTypes.attrReturn type
DomTypes.attrremoveAttributeNS
Removes element's attribute whose namespace is namespace and local name is localName. Read more on MDN
let removeAttributeNS: ( DomTypes.htmlButtonElement, ~namespace: string, ~localName: string,) => unitParameters
DomTypes.htmlButtonElement string stringReturn type
unitremoveEventListener
Removes the event listener in target's event listener list with the same type, callback, and options. Read more on MDN
let removeEventListener: ( DomTypes.htmlButtonElement, EventTypes.eventType, EventTypes.eventListener<'event>, ~options: EventTypes.eventListenerOptions=?,) => unitParameters
DomTypes.htmlButtonElement EventTypes.eventType EventTypes.eventListener option< EventTypes.eventListenerOptions >Return type
unitremoveEventListenerUseCapture
Removes the event listener in target's event listener list with the same type, callback, and options. Read more on MDN
let removeEventListenerUseCapture: ( DomTypes.htmlButtonElement, EventTypes.eventType, EventTypes.eventListener<'event>,) => unitParameters
DomTypes.htmlButtonElement EventTypes.eventType EventTypes.eventListenerReturn type
unitreplaceChild
let replaceChild: (DomTypes.htmlButtonElement, ~node: DomTypes.node, 't) => 'tParameters
DomTypes.htmlButtonElementReturn type
DomTypes.nodereplaceChildren
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. Read more on MDN
let replaceChildren: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitreplaceChildren2
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. Read more on MDN
let replaceChildren2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitreplaceWith
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. Read more on MDN
let replaceWith: (DomTypes.htmlButtonElement, DomTypes.node) => unitParameters
DomTypes.htmlButtonElement DomTypes.nodeReturn type
unitreplaceWith2
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. Read more on MDN
let replaceWith2: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitreportValidity
let reportValidity: DomTypes.htmlButtonElement => boolParameters
DomTypes.htmlButtonElementReturn type
boolrequestFullscreen
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. Read more on MDN
let requestFullscreen: ( DomTypes.htmlButtonElement, ~options: DomTypes.fullscreenOptions=?,) => promise<unit>Parameters
DomTypes.htmlButtonElement option< DomTypes.fullscreenOptions >Return type
promise< unit >requestPointerLock
let requestPointerLock: ( DomTypes.htmlButtonElement, ~options: DomTypes.pointerLockOptions=?,) => promise<unit>Parameters
DomTypes.htmlButtonElement option< DomTypes.pointerLockOptions >Return type
promise< unit >scroll
let scroll: ( DomTypes.htmlButtonElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlButtonElement option< DomTypes.scrollToOptions >Return type
unitscroll2
let scroll2: (DomTypes.htmlButtonElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlButtonElement float floatReturn type
unitscrollBy
let scrollBy: ( DomTypes.htmlButtonElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlButtonElement option< DomTypes.scrollToOptions >Return type
unitscrollBy2
let scrollBy2: (DomTypes.htmlButtonElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlButtonElement float floatReturn type
unitscrollIntoView
scrollIntoView()
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoView()
let scrollIntoView: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitscrollIntoViewAlignToTop
scrollIntoView(true)
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoView_alignToTop()
let scrollIntoViewAlignToTop: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unitscrollIntoViewWithOptions
scrollIntoView({ behavior: "smooth" })
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth })
let scrollIntoViewWithOptions: ( DomTypes.htmlButtonElement, DomTypes.scrollIntoViewOptions,) => unitParameters
DomTypes.htmlButtonElement DomTypes.scrollIntoViewOptionsReturn type
unitscrollTo
let scrollTo: ( DomTypes.htmlButtonElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlButtonElement option< DomTypes.scrollToOptions >Return type
unitscrollTo2
let scrollTo2: (DomTypes.htmlButtonElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlButtonElement float floatReturn type
unitsetAttribute
Sets the value of element's first attribute whose qualified name is qualifiedName to value. Read more on MDN
let setAttribute: ( DomTypes.htmlButtonElement, ~qualifiedName: string, ~value: string,) => unitParameters
DomTypes.htmlButtonElement string stringReturn type
unitsetAttributeNode
let setAttributeNode: (DomTypes.htmlButtonElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlButtonElement DomTypes.attrReturn type
DomTypes.attrsetAttributeNodeNS
let setAttributeNodeNS: (DomTypes.htmlButtonElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlButtonElement DomTypes.attrReturn type
DomTypes.attrsetAttributeNS
Sets the value of element's attribute whose namespace is namespace and local name is localName to value. Read more on MDN
let setAttributeNS: ( DomTypes.element, ~namespace: string, ~qualifiedName: string, ~value: string,) => unitParameters
DomTypes.element string string stringReturn type
unitsetCustomValidity
Sets a custom error message that is displayed when a form is submitted. @param error Sets a custom error message that is displayed when a form is submitted. Read more on MDN
let setCustomValidity: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitsetHTMLUnsafe
let setHTMLUnsafe: (DomTypes.htmlButtonElement, string) => unitParameters
DomTypes.htmlButtonElement stringReturn type
unitsetPointerCapture
let setPointerCapture: (DomTypes.htmlButtonElement, int) => unitParameters
DomTypes.htmlButtonElement intReturn type
unitshowPopover
let showPopover: DomTypes.htmlButtonElement => unitParameters
DomTypes.htmlButtonElementReturn type
unittoggleAttribute
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. Read more on MDN
let toggleAttribute: ( DomTypes.htmlButtonElement, ~qualifiedName: string, ~force: bool=?,) => boolParameters
DomTypes.htmlButtonElement string option< bool >Return type
booltogglePopover
let togglePopover: (DomTypes.htmlButtonElement, ~force: bool=?) => bool