window.HTMLInputElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
value : *
#
Returns the value of the input element.
defaultValue : string
#
The defaultValue for the input element (if applicable to the input element's type)
checked : boolean
#
Indicates if the checkbox is checked.
indeterminate : boolean
#
Indicates if the element is indeterminate
autofocus : boolean
#
Indicates if the element will focus automatically when it is loaded in a form.
name : string
#
Specifies the name of this input element.
type : string
#
Specifies the type of input control
placeholder : string
#
The placeholder for the input element (if applicable to the input element's type)
readOnly : boolean
#
Determines if the element's content is read only.
min : string
#
Minimum value allowed (used for input type="range"
)
max : string
#
Maximum value allowed (used for input type="range"
)
step : string
#
the size of each movement of the slder control (used for input type="range"
)
uxpVariant : string
#
Controls the type of native widget.
uxpQuiet : string
#
Determines if a control is rendered in "quiet" mode
selectionStart : Number
#
Returns the beginning index of the selected text. When nothing is selected,
this returns the position of the text input cursor (caret) inside of the <input>
element.
Apply only to elements with type text/password/search/tel/url/week/month
selectionEnd : Number
#
Returns the end index of the selected text. When there's no selection, this returns the offset of the character immediately following the current text input cursor position. Apply only to elements with type text/password/search/tel/url/week/month
dataset#
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
nodeName : string
#
Read only
localName : string
#
Read only
tagName : string
#
Read only
nodeType : number
#
Read only
namespaceURI : string
#
Read only
id : string
#
tabIndex : number
#
className : string
#
attributes : NamedNodeMap
#
Read only
style : Style
#
Read only
clientLeft : number
#
Read only
clientTop : number
#
Read only
clientWidth : number
#
Read only
clientHeight : number
#
Read only
height : string
| Number
#
The height of the element
width : string
| Number
#
The width of the element
offsetParent : Element
#
Read only
offsetLeft : number
#
Read only
offsetTop : number
#
Read only
offsetWidth : number
#
Read only
offsetHeight : number
#
Read only
scrollLeft : number
#
scrollTop : number
#
scrollWidth : number
#
Read only
scrollHeight : number
#
Read only
uxpContainer : number
#
Read only
disabled : boolean
#
innerHTML : string
#
outerHTML : string
#
contentEditable#
Read only
isConnected : boolean
#
Read only
parentNode : Node
#
Read only
parentElement : Element
#
Read only
firstChild : Node
#
Read only
lastChild : Node
#
Read only
previousSibling : Node
#
Read only
nextSibling : Node
#
Read only
firstElementChild : Node
#
Read only
lastElementChild : Node
#
Read only
previousElementSibling : Node
#
Read only
nextElementSibling : Node
#
Read only
textContent : string
#
childNodes : NodeList
#
Read only
children : HTMLCollection
#
Read only
ownerDocument#
Read only
scrollTo(xOrOptions, y)#
Scrolls the element to the new x and y positions. If options object is used with behavior: "smooth" then the element is smoothly scrolled.
See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo
Param | Type | Description |
---|---|---|
xOrOptions | * | either the new scrollLeft position or an options object. |
y | * | the optional new scrollTop position. |
scrollIntoView(alignToTop)#
Param | Type |
---|---|
alignToTop | boolean |
scrollIntoViewIfNeeded()#
focus()#
blur()#
getAttribute(name)#
Returns: string
Param | Type |
---|---|
name | string |
setAttribute(name, value)#
Param | Type |
---|---|
name | string |
value | string |
removeAttribute(name)#
Param | Type |
---|---|
name | string |
hasAttribute(name)#
Returns: boolean
Param | Type |
---|---|
name | string |
getAttributeNode(name)#
Returns: *
Param | Type |
---|---|
name | string |
setAttributeNode(newAttr)#
Param | Type |
---|---|
newAttr | * |
removeAttributeNode(oldAttr)#
Param | Type |
---|---|
oldAttr | * |
click()#
getElementsByClassName(name)#
Returns: NodeList
Param | Type |
---|---|
name | string |
getElementsByTagName(name)#
Returns: NodeList
Param | Type |
---|---|
name | string |
querySelector(selector)#
Returns: Element
Param | Type |
---|---|
selector | string |
querySelectorAll(selector)#
Returns: NodeList
Param | Type |
---|---|
selector | string |
getBoundingClientRect()#
Returns: *
insertAdjacentHTML(position, value)#
Param | Type |
---|---|
position | |
value | string |
insertAdjacentElement(position, node)#
Returns: Node
Param | Type |
---|---|
position | * |
node | * |
insertAdjacentText(position, text)#
Param | Type |
---|---|
position | * |
text | * |
hasChildNodes()#
Returns: boolean
cloneNode(deep)#
Returns: Node
Param | Type |
---|---|
deep | boolean |
appendChild(child)#
Returns: Node
Param | Type |
---|---|
child | Node |
insertBefore(child, before)#
Returns: Node
Param | Type |
---|---|
child | Node |
before | Node |
replaceChild(newChild, oldChild)#
Returns: Node
Param | Type |
---|---|
newChild | Node |
oldChild | Node |
removeChild(child)#
Returns: Node
Param | Type |
---|---|
child | Node |
remove()#
before(...nodes)#
Param | Type |
---|---|
...nodes | Array.<Node> |
after(...nodes)#
Param | Type |
---|---|
...nodes | Array.<Node> |
replaceWith(...nodes)#
Param | Type |
---|---|
...nodes | Array.<Node> |
contains(node)#
Param | Type |
---|---|
node | Node |
addEventListener(eventName, callback, [capture])#
Param | Type | Default |
---|---|---|
eventName | * | |
callback | * | |
[capture] | boolean | false |
removeEventListener(eventName, callback, [capture])#
Param | Type | Default |
---|---|---|
eventName | * | |
callback | * | |
[capture] | boolean | false |
dispatchEvent(event)#
Param | Type |
---|---|
event | * |
HTMLTextAreaElement#defaultValue : string
#
The defaultValue for the textarea element