HTMLOptionElement

Extends: HTMLElement

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement

new HTMLOptionElement(document, nodeName, namespaceURI)

Creates an instance of HTMLOptionElement.

Param Type
document *
nodeName *
namespaceURI *

htmlOptionElement.value : string

htmlOptionElement.dataset

Access to all the custom data attributes (data-*) set.

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset

htmlOptionElement.nodeName : string

Read only

htmlOptionElement.localName : string

Read only

htmlOptionElement.tagName : string

Read only

htmlOptionElement.nodeType : number

Read only

htmlOptionElement.namespaceURI : string

Read only

htmlOptionElement.id : string

htmlOptionElement.tabIndex : number

htmlOptionElement.className : string

htmlOptionElement.attributes : NamedNodeMap

Read only

htmlOptionElement.style : Style

Read only

htmlOptionElement.clientLeft : number

Read only

htmlOptionElement.clientTop : number

Read only

htmlOptionElement.clientWidth : number

Read only

htmlOptionElement.clientHeight : number

Read only

htmlOptionElement.height : string or Number

The height of the element

htmlOptionElement.width : string or Number

The width of the element

htmlOptionElement.offsetParent : Element

Read only

htmlOptionElement.offsetLeft : number

Read only

htmlOptionElement.offsetTop : number

Read only

htmlOptionElement.offsetWidth : number

Read only

htmlOptionElement.offsetHeight : number

Read only

htmlOptionElement.scrollLeft : number

htmlOptionElement.scrollTop : number

htmlOptionElement.scrollWidth : number

Read only

htmlOptionElement.scrollHeight : number

Read only

htmlOptionElement.uxpContainer : UXPContainer

Read only

htmlOptionElement.disabled : boolean

htmlOptionElement.innerHTML : string

htmlOptionElement.outerHTML : string

htmlOptionElement.contentEditable

Read only

htmlOptionElement.isConnected : boolean

Read only

htmlOptionElement.parentNode : Node

Read only

htmlOptionElement.parentElement : Element

Read only

htmlOptionElement.firstChild : Node

Read only

htmlOptionElement.lastChild : Node

Read only

htmlOptionElement.previousSibling : Node

Read only

htmlOptionElement.nextSibling : Node

Read only

htmlOptionElement.firstElementChild : Node

Read only

htmlOptionElement.lastElementChild : Node

Read only

htmlOptionElement.previousElementSibling : Node

Read only

htmlOptionElement.nextElementSibling : Node

Read only

htmlOptionElement.textContent : string

htmlOptionElement.childNodes : NodeList

Read only

htmlOptionElement.children : HTMLCollection

Read only

htmlOptionElement.ownerDocument

Read only

htmlOptionElement.scrollIntoView()

htmlOptionElement.scrollIntoViewIfNeeded()

htmlOptionElement.focus()

htmlOptionElement.blur()

htmlOptionElement.getAttribute(name)

Param Type
name string

htmlOptionElement.setAttribute(name, value)

Param Type
name string
value string

htmlOptionElement.removeAttribute(name)

Param Type
name string

htmlOptionElement.hasAttribute(name)

Param Type
name string

htmlOptionElement.getAttributeNode(name)

Param Type
name string

htmlOptionElement.setAttributeNode(newAttr)

Param Type
newAttr *

htmlOptionElement.removeAttributeNode(oldAttr)

Param Type
oldAttr *

htmlOptionElement.click()

htmlOptionElement.getElementsByClassName(name)

Param Type
name string

htmlOptionElement.getElementsByTagName(name)

Param Type
name string

htmlOptionElement.querySelector(selector)

Param Type
selector string

htmlOptionElement.querySelectorAll(selector)

Param Type
selector string

htmlOptionElement.getBoundingClientRect()

htmlOptionElement.insertAdjacentHTML(position, value)

Param Type
position
value string

htmlOptionElement.insertAdjacentElement(position, node)

Param Type
position *
node *

htmlOptionElement.insertAdjacentText(position, text)

Param Type
position *
text *

htmlOptionElement.hasChildNodes()

htmlOptionElement.cloneNode(deep)

Param Type
deep boolean

htmlOptionElement.appendChild(child)

Param Type
child Node

htmlOptionElement.insertBefore(child, before)

Param Type
child Node
before Node

htmlOptionElement.replaceChild(newChild, oldChild)

Param Type
newChild Node
oldChild Node

htmlOptionElement.removeChild(child)

Param Type
child Node

htmlOptionElement.remove()

htmlOptionElement.before(...nodes)

Param Type
...nodes Array.<Node>

htmlOptionElement.after(...nodes)

Param Type
...nodes Array.<Node>

htmlOptionElement.replaceWith(...nodes)

Param Type
...nodes Array.<Node>

htmlOptionElement.contains(node)

Param Type
node Node

htmlOptionElement.addEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

htmlOptionElement.removeEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

htmlOptionElement.dispatchEvent(event)

Param Type
event *

results matching ""

    No results matching ""