HTMLInputElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
- HTMLInputElement
- new HTMLInputElement(document, nodeName, namespaceURI)
- instance
- .value :
*
- .defaultValue :
string
- .checked :
boolean
- .indeterminate :
boolean
- .autofocus :
boolean
- .name :
string
- .type :
string
- .placeholder :
string
- .readOnly :
boolean
- .min :
string
- .max :
string
- .step :
string
- .uxpVariant :
string
- .uxpQuiet :
string
- .dataset
- .nodeName :
string
- .localName :
string
- .tagName :
string
- .nodeType :
number
- .namespaceURI :
string
- .id :
string
- .tabIndex :
number
- .className :
string
- .attributes :
NamedNodeMap
- .style :
Style
- .clientLeft :
number
- .clientTop :
number
- .clientWidth :
number
- .clientHeight :
number
- .height :
string
orNumber
- .width :
string
orNumber
- .offsetParent :
Element
- .offsetLeft :
number
- .offsetTop :
number
- .offsetWidth :
number
- .offsetHeight :
number
- .scrollLeft :
number
- .scrollTop :
number
- .scrollWidth :
number
- .scrollHeight :
number
- .uxpContainer :
UXPContainer
- .disabled :
boolean
- .innerHTML :
string
- .outerHTML :
string
- .contentEditable
- .isConnected :
boolean
- .parentNode :
Node
- .parentElement :
Element
- .firstChild :
Node
- .lastChild :
Node
- .previousSibling :
Node
- .nextSibling :
Node
- .firstElementChild :
Node
- .lastElementChild :
Node
- .previousElementSibling :
Node
- .nextElementSibling :
Node
- .textContent :
string
- .childNodes :
NodeList
- .children :
HTMLCollection
- .ownerDocument
- .scrollIntoView()
- .scrollIntoViewIfNeeded()
- .focus()
- .blur()
- .getAttribute(name)
- .setAttribute(name, value)
- .removeAttribute(name)
- .hasAttribute(name)
- .getAttributeNode(name)
- .setAttributeNode(newAttr)
- .removeAttributeNode(oldAttr)
- .click()
- .getElementsByClassName(name)
- .getElementsByTagName(name)
- .querySelector(selector)
- .querySelectorAll(selector)
- .getBoundingClientRect()
- .insertAdjacentHTML(position, value)
- .insertAdjacentElement(position, node)
- .insertAdjacentText(position, text)
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
- .value :
- static
- .HTMLTextAreaElement#defaultValue :
string
- .HTMLTextAreaElement#defaultValue :
new HTMLInputElement(document, nodeName, namespaceURI)
Creates an instance of HTMLInputElement.
Param | Type |
---|---|
document | * |
nodeName | * |
namespaceURI | * |
htmlInputElement.value : *
Returns the value of the input element.
htmlInputElement.defaultValue : string
The defaultValue for the input element (if applicable to the input element's type)
htmlInputElement.checked : boolean
Indicates if the checkbox is checked.
htmlInputElement.indeterminate : boolean
Indicates if the element is indeterminate
htmlInputElement.autofocus : boolean
Indicates if the element will focus automatically when it is loaded in a form.
htmlInputElement.name : string
Specifies the name of this input element.
htmlInputElement.type : string
Specifies the type of input control
htmlInputElement.placeholder : string
The placeholder for the input element (if applicable to the input element's type)
htmlInputElement.readOnly : boolean
Determines if the element's content is read only.
htmlInputElement.min : string
Minimum value allowed (used for input type="range"
)
htmlInputElement.max : string
Maximum value allowed (used for input type="range"
)
htmlInputElement.step : string
the size of each movement of the slder control (used for input type="range"
)
htmlInputElement.uxpVariant : string
Controls the type of native widget.
htmlInputElement.uxpQuiet : string
Determines if a control is rendered in "quiet" mode
htmlInputElement.dataset
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
htmlInputElement.nodeName : string
Read only
htmlInputElement.localName : string
Read only
htmlInputElement.tagName : string
Read only
htmlInputElement.nodeType : number
Read only
htmlInputElement.namespaceURI : string
Read only
htmlInputElement.id : string
htmlInputElement.tabIndex : number
htmlInputElement.className : string
htmlInputElement.attributes : NamedNodeMap
Read only
htmlInputElement.style : Style
Read only
htmlInputElement.clientLeft : number
Read only
htmlInputElement.clientTop : number
Read only
htmlInputElement.clientWidth : number
Read only
htmlInputElement.clientHeight : number
Read only
htmlInputElement.height : string
or Number
The height of the element
htmlInputElement.width : string
or Number
The width of the element
htmlInputElement.offsetParent : Element
Read only
htmlInputElement.offsetLeft : number
Read only
htmlInputElement.offsetTop : number
Read only
htmlInputElement.offsetWidth : number
Read only
htmlInputElement.offsetHeight : number
Read only
htmlInputElement.scrollLeft : number
htmlInputElement.scrollTop : number
htmlInputElement.scrollWidth : number
Read only
htmlInputElement.scrollHeight : number
Read only
htmlInputElement.uxpContainer : UXPContainer
Read only
htmlInputElement.disabled : boolean
htmlInputElement.innerHTML : string
htmlInputElement.outerHTML : string
htmlInputElement.contentEditable
Read only
htmlInputElement.isConnected : boolean
Read only
htmlInputElement.parentNode : Node
Read only
htmlInputElement.parentElement : Element
Read only
htmlInputElement.firstChild : Node
Read only
htmlInputElement.lastChild : Node
Read only
htmlInputElement.previousSibling : Node
Read only
htmlInputElement.nextSibling : Node
Read only
htmlInputElement.firstElementChild : Node
Read only
htmlInputElement.lastElementChild : Node
Read only
htmlInputElement.previousElementSibling : Node
Read only
htmlInputElement.nextElementSibling : Node
Read only
htmlInputElement.textContent : string
htmlInputElement.childNodes : NodeList
Read only
htmlInputElement.children : HTMLCollection
Read only
htmlInputElement.ownerDocument
Read only
htmlInputElement.scrollIntoView()
htmlInputElement.scrollIntoViewIfNeeded()
htmlInputElement.focus()
htmlInputElement.blur()
htmlInputElement.getAttribute(name)
Param | Type |
---|---|
name | string |
htmlInputElement.setAttribute(name, value)
Param | Type |
---|---|
name | string |
value | string |
htmlInputElement.removeAttribute(name)
Param | Type |
---|---|
name | string |
htmlInputElement.hasAttribute(name)
Param | Type |
---|---|
name | string |
htmlInputElement.getAttributeNode(name)
Param | Type |
---|---|
name | string |
htmlInputElement.setAttributeNode(newAttr)
Param | Type |
---|---|
newAttr | * |
htmlInputElement.removeAttributeNode(oldAttr)
Param | Type |
---|---|
oldAttr | * |
htmlInputElement.click()
htmlInputElement.getElementsByClassName(name)
Param | Type |
---|---|
name | string |
htmlInputElement.getElementsByTagName(name)
Param | Type |
---|---|
name | string |
htmlInputElement.querySelector(selector)
Param | Type |
---|---|
selector | string |
htmlInputElement.querySelectorAll(selector)
Param | Type |
---|---|
selector | string |
htmlInputElement.getBoundingClientRect()
htmlInputElement.insertAdjacentHTML(position, value)
Param | Type |
---|---|
position | |
value | string |
htmlInputElement.insertAdjacentElement(position, node)
Param | Type |
---|---|
position | * |
node | * |
htmlInputElement.insertAdjacentText(position, text)
Param | Type |
---|---|
position | * |
text | * |
htmlInputElement.hasChildNodes()
htmlInputElement.cloneNode(deep)
Param | Type |
---|---|
deep | boolean |
htmlInputElement.appendChild(child)
Param | Type |
---|---|
child | Node |
htmlInputElement.insertBefore(child, before)
Param | Type |
---|---|
child | Node |
before | Node |
htmlInputElement.replaceChild(newChild, oldChild)
Param | Type |
---|---|
newChild | Node |
oldChild | Node |
htmlInputElement.removeChild(child)
Param | Type |
---|---|
child | Node |
htmlInputElement.remove()
htmlInputElement.before(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlInputElement.after(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlInputElement.replaceWith(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlInputElement.contains(node)
Param | Type |
---|---|
node | Node |
htmlInputElement.addEventListener(eventName, callback, [capture])
Param | Type | Default |
---|---|---|
eventName | * |
|
callback | * |
|
[capture] | boolean |
false |
htmlInputElement.removeEventListener(eventName, callback, [capture])
Param | Type | Default |
---|---|---|
eventName | * |
|
callback | * |
|
[capture] | boolean |
false |
htmlInputElement.dispatchEvent(event)
Param | Type |
---|---|
event | * |
HTMLInputElement.HTMLTextAreaElement#defaultValue : string
The defaultValue for the textarea element