可选的 HTMLInputElement 属性对象。
Optional
Readonly
ATTRIBUTE_Optional
Readonly
CDATA_node is a CDATASection node.
Optional
Readonly
COMMENT_node is a Comment node.
Optional
Readonly
DOCUMENT_node is a DocumentFragment node.
Optional
Readonly
DOCUMENT_node is a document.
Optional
Readonly
DOCUMENT_Set when other is a descendant of node.
Optional
Readonly
DOCUMENT_Set when other is an ancestor of node.
Optional
Readonly
DOCUMENT_Set when node and other are not in the same tree.
Optional
Readonly
DOCUMENT_Set when other is following node.
Optional
Readonly
DOCUMENT_Optional
Readonly
DOCUMENT_Set when other is preceding node.
Optional
Readonly
DOCUMENT_node is a doctype.
Optional
Readonly
ELEMENT_node is an element.
Optional
Readonly
ENTITY_Optional
Readonly
ENTITY_Optional
Readonly
NOTATION_Optional
Readonly
PROCESSING_node is a ProcessingInstruction node.
Optional
Readonly
TEXT_node is a Text node.
Optional
accept?: stringSets or retrieves a comma-separated list of content types.
Optional
accessOptional
Readonly
accessOptional
align?: stringSets or retrieves how the object is aligned with adjacent text.
Optional
alt?: stringSets or retrieves a text alternative to the graphic.
Optional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
ariaOptional
Readonly
assignedOptional
Readonly
attributeOptional
Readonly
attributes?: { [x: number]: { readonly localName?: string | undefined; readonly name?: string | undefined; readonly namespaceURI?: string | null | undefined; readonly ownerDocument?: { readonly URL?: string | undefined; ... 257 more ...; evaluate?: {} | undefined; } | undefined; ... 52 more ...; removeEventListener?: {} | undefi...Optional
autocapitalize?: stringOptional
autocomplete?: AutoFillSpecifies whether autocomplete is applied to an editable text field.
Optional
autofocus?: booleanOptional
Readonly
baseURI?: stringReturns node's node document's document base URL.
Optional
capture?: stringOptional
checked?: booleanSets or retrieves the state of the check box or radio button.
Optional
Readonly
childOptional
Readonly
childReturns the children.
Optional
Readonly
children?: { [x: number]: { readonly attributes?: { [x: number]: { readonly localName?: string | undefined; readonly name?: string | undefined; readonly namespaceURI?: string | null | undefined; readonly ownerDocument?: { ...; } | undefined; ... 52 more ...; removeEventListener?: {} | undefined; } | undefined; ... 7 more ...; ...Returns the child elements.
Optional
Readonly
classAllows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Optional
classReturns the value of element's class content attribute. Can be set to change it.
Optional
Readonly
clientOptional
Readonly
clientOptional
Readonly
clientOptional
Readonly
clientOptional
contentOptional
Readonly
dataset?: { [x: string]: string | undefined; }Optional
defaultSets or retrieves the state of the check box or radio button.
Optional
defaultSets or retrieves the initial contents of the object.
Optional
dir?: stringOptional
dirOptional
disabled?: booleanOptional
draggable?: booleanOptional
enterOptional
files?: null | ({ [x: number]: { readonly lastModified?: number | undefined; readonly name?: string | undefined; readonly webkitRelativePath?: string | undefined; readonly size?: number | undefined; ... 4 more ...; text?: {} | undefined; } | undefined; readonly length?: number | undefined; item?: {} | undefined; })Returns a FileList object on a file type input object.
Optional
Readonly
firstReturns the first child.
Optional
Readonly
firstReturns the first child that is an element, and null otherwise.
Optional
Readonly
form?: null | ({ [x: number]: { readonly attributes?: { [x: number]: { readonly localName?: string | undefined; readonly name?: string | undefined; readonly namespaceURI?: string | null | undefined; readonly ownerDocument?: { ...; } | undefined; ... 52 more ...; removeEventListener?: {} | undefined; } | undefined; ... 7 more ...; ...)Retrieves a reference to the form that the object is embedded in.
Optional
formOverrides the action attribute (where the data on a form is sent) on the parent form element.
Optional
formUsed to override the encoding (formEnctype attribute) specified on the form element.
Optional
formOverrides the submit method attribute previously specified on a form element.
Optional
formOverrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
Optional
formOverrides the target attribute on a form element.
Optional
height?: numberSets or retrieves the height of the object.
Optional
hidden?: booleanOptional
id?: stringReturns the value of element's id content attribute. Can be set to change it.
Optional
indeterminate?: booleanWhen set, overrides the rendering of checkbox controls so that the current value is not visible.
Optional
inert?: booleanOptional
innerHTML?: stringOptional
innerOptional
inputOptional
Readonly
isReturns true if node is connected and false otherwise.
Optional
Readonly
isOptional
Readonly
labels?: null | ({ [x: number]: { readonly control?: { accessKey?: string | undefined; readonly accessKeyLabel?: string | undefined; autocapitalize?: string | undefined; dir?: string | undefined; draggable?: boolean | undefined; ... 293 more ...; focus?: {} | undefined; } | null | undefined; ... 300 more ...; focus?: {} | undefined;...)Optional
lang?: stringOptional
Readonly
lastReturns the last child.
Optional
Readonly
lastReturns the last child that is an element, and null otherwise.
Optional
Readonly
list?: null | ({ readonly options?: { [x: number]: { defaultSelected?: boolean | undefined; disabled?: boolean | undefined; readonly form?: { [x: number]: { readonly attributes?: { [x: number]: { readonly localName?: string | undefined; readonly name?: string | undefined; ... 54 more ...; removeEventListener?: {} | undefined; } | ...)Specifies the ID of a pre-defined datalist of options for an input element.
Optional
Readonly
localReturns the local name.
Optional
max?: stringDefines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
Optional
maxSets or retrieves the maximum number of characters that the user can enter in a text control.
Optional
min?: stringDefines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
Optional
minOptional
multiple?: booleanSets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
Optional
name?: stringSets or retrieves the name of the object.
Optional
Readonly
namespaceURI?: null | stringReturns the namespace.
Optional
Readonly
nextReturns the first following sibling that is an element, and null otherwise.
Optional
Readonly
nextReturns the next sibling.
Optional
Readonly
nodeReturns a string appropriate for the type of node.
Optional
Readonly
nodeReturns the type of node.
Optional
nodeOptional
nonce?: stringOptional
Readonly
offsetOptional
Readonly
offsetOptional
Readonly
offsetOptional
Readonly
offsetOptional
Readonly
offsetOptional
onabort?: null | ({})Fires when the user aborts the download.
Optional
onanimationcancel?: null | ({})Optional
onanimationend?: null | ({})Optional
onanimationiteration?: null | ({})Optional
onanimationstart?: null | ({})Optional
onauxclick?: null | ({})Optional
onbeforeinput?: null | ({})Optional
onblur?: null | ({})Fires when the object loses the input focus.
Optional
oncancel?: null | ({})Optional
oncanplay?: null | ({})Occurs when playback is possible, but would require further buffering.
Optional
oncanplaythrough?: null | ({})Optional
onchange?: null | ({})Fires when the contents of the object or selection have changed.
Optional
onclick?: null | ({})Fires when the user clicks the left mouse button on the object
Optional
onclose?: null | ({})Optional
oncontextmenu?: null | ({})Fires when the user clicks the right mouse button in the client area, opening the context menu.
Optional
oncopy?: null | ({})Optional
oncuechange?: null | ({})Optional
oncut?: null | ({})Optional
ondblclick?: null | ({})Fires when the user double-clicks the object.
Optional
ondrag?: null | ({})Fires on the source object continuously during a drag operation.
Optional
ondragend?: null | ({})Fires on the source object when the user releases the mouse at the close of a drag operation.
Optional
ondragenter?: null | ({})Fires on the target element when the user drags the object to a valid drop target.
Optional
ondragleave?: null | ({})Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Optional
ondragover?: null | ({})Fires on the target element continuously while the user drags the object over a valid drop target.
Optional
ondragstart?: null | ({})Fires on the source object when the user starts to drag a text selection or selected object.
Optional
ondrop?: null | ({})Optional
ondurationchange?: null | ({})Occurs when the duration attribute is updated.
Optional
onemptied?: null | ({})Occurs when the media element is reset to its initial state.
Optional
onended?: null | ({})Occurs when the end of playback is reached.
Optional
onerror?: null | ({})Fires when an error occurs during object loading.
Optional
onfocus?: null | ({})Fires when the object receives focus.
Optional
onformdata?: null | ({})Optional
onfullscreenchange?: null | ({})Optional
onfullscreenerror?: null | ({})Optional
ongotpointercapture?: null | ({})Optional
oninput?: null | ({})Optional
oninvalid?: null | ({})Optional
onkeydown?: null | ({})Fires when the user presses a key.
Optional
onkeypress?: null | ({})Fires when the user presses an alphanumeric key.
Optional
onkeyup?: null | ({})Fires when the user releases a key.
Optional
onload?: null | ({})Fires immediately after the browser loads the object.
Optional
onloadeddata?: null | ({})Occurs when media data is loaded at the current playback position.
Optional
onloadedmetadata?: null | ({})Occurs when the duration and dimensions of the media have been determined.
Optional
onloadstart?: null | ({})Occurs when Internet Explorer begins looking for media data.
Optional
onlostpointercapture?: null | ({})Optional
onmousedown?: null | ({})Fires when the user clicks the object with either mouse button.
Optional
onmouseenter?: null | ({})Optional
onmouseleave?: null | ({})Optional
onmousemove?: null | ({})Fires when the user moves the mouse over the object.
Optional
onmouseout?: null | ({})Fires when the user moves the mouse pointer outside the boundaries of the object.
Optional
onmouseover?: null | ({})Fires when the user moves the mouse pointer into the object.
Optional
onmouseup?: null | ({})Fires when the user releases a mouse button while the mouse is over the object.
Optional
onpaste?: null | ({})Optional
onpause?: null | ({})Occurs when playback is paused.
Optional
onplay?: null | ({})Occurs when the play method is requested.
Optional
onplaying?: null | ({})Occurs when the audio or video has started playing.
Optional
onpointercancel?: null | ({})Optional
onpointerdown?: null | ({})Optional
onpointerenter?: null | ({})Optional
onpointerleave?: null | ({})Optional
onpointermove?: null | ({})Optional
onpointerout?: null | ({})Optional
onpointerover?: null | ({})Optional
onpointerup?: null | ({})Optional
onprogress?: null | ({})Occurs to indicate progress while downloading media data.
Optional
onratechange?: null | ({})Occurs when the playback rate is increased or decreased.
Optional
onreset?: null | ({})Fires when the user resets a form.
Optional
onresize?: null | ({})Optional
onscroll?: null | ({})Fires when the user repositions the scroll box in the scroll bar on the object.
Optional
onscrollend?: null | ({})Optional
onsecuritypolicyviolation?: null | ({})Optional
onseeked?: null | ({})Occurs when the seek operation ends.
Optional
onseeking?: null | ({})Occurs when the current playback position is moved.
Optional
onselect?: null | ({})Fires when the current selection changes.
Optional
onselectionchange?: null | ({})Optional
onselectstart?: null | ({})Optional
onslotchange?: null | ({})Optional
onstalled?: null | ({})Occurs when the download has stopped.
Optional
onsubmit?: null | ({})Optional
onsuspend?: null | ({})Occurs if the load operation has been intentionally halted.
Optional
ontimeupdate?: null | ({})Occurs to indicate the current playback position.
Optional
ontoggle?: null | ({})Optional
ontouchcancel?: null | ({})Optional
ontouchend?: null | ({})Optional
ontouchmove?: null | ({})Optional
ontouchstart?: null | ({})Optional
ontransitioncancel?: null | ({})Optional
ontransitionend?: null | ({})Optional
ontransitionrun?: null | ({})Optional
ontransitionstart?: null | ({})Optional
onvolumechange?: null | ({})Occurs when the volume is changed, or playback is muted or unmuted.
Optional
onwaiting?: null | ({})Occurs when playback stops because the next frame of a video resource is not available.
Optional
onwebkitanimationend?: null | ({})Optional
onwebkitanimationiteration?: null | ({})Optional
onwebkitanimationstart?: null | ({})Optional
onwebkittransitionend?: null | ({})Optional
onwheel?: null | ({})Optional
outerHTML?: stringOptional
outerOptional
Readonly
ownerOptional
Readonly
parentReturns the parent element.
Optional
Readonly
parentReturns the parent.
Optional
Readonly
part?: { [x: number]: string | undefined; readonly length?: number | undefined; value?: string | undefined; toString?: {} | undefined; add?: {} | undefined; contains?: {} | undefined; item?: {} | undefined; ... 4 more ...; forEach?: {} | undefined; }Optional
pattern?: stringGets or sets a string containing a regular expression that the user's input must match.
Optional
placeholder?: stringGets 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.
Optional
popover?: null | stringOptional
popoverOptional
popoverOptional
Readonly
prefix?: null | stringReturns the namespace prefix.
Optional
Readonly
previousReturns the first preceding sibling that is an element, and null otherwise.
Optional
Readonly
previousReturns the previous sibling.
Optional
readOptional
required?: booleanWhen present, marks an element that can't be submitted without a value.
Optional
role?: null | stringOptional
Readonly
scrollOptional
scrollOptional
scrollOptional
Readonly
scrollOptional
selectionOptional
selectionGets or sets the end position or offset of a text selection.
Optional
selectionGets or sets the starting position or offset of a text selection.
Optional
Readonly
shadowReturns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Optional
size?: numberOptional
slot?: stringReturns the value of element's slot content attribute. Can be set to change it.
Optional
spellcheck?: booleanOptional
src?: stringThe address or URL of the a media resource that is to be considered.
Optional
step?: stringDefines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
Optional
Readonly
style?: { [x: number]: string | undefined; accentColor?: string | undefined; alignContent?: string | undefined; alignItems?: string | undefined; alignSelf?: string | undefined; alignmentBaseline?: string | undefined; ... 476 more ...; setProperty?: {} | undefined; }Optional
tabOptional
Readonly
tagReturns the HTML-uppercased qualified name.
Optional
textOptional
title?: stringOptional
translate?: booleanOptional
type?: stringReturns the content type of the object.
Optional
useSets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
Optional
Readonly
validationReturns 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.
Optional
Readonly
validity?: { readonly badInput?: boolean | undefined; readonly customError?: boolean | undefined; readonly patternMismatch?: boolean | undefined; readonly rangeOverflow?: boolean | undefined; ... 6 more ...; readonly valueMissing?: boolean | undefined; }Returns a ValidityState object that represents the validity states of an element.
Optional
value?: stringReturns the value of the data at the cursor's current position.
Optional
valueReturns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
Optional
valueReturns the input field value as a number.
Optional
Readonly
webkitOptional
webkitdirectory?: booleanOptional
width?: numberSets or retrieves the width of the object.
Optional
Readonly
willReturns whether an element will successfully validate based on forms validation rules and constraints.
Generated using TypeDoc
一个文件选择器函数,用于创建一个 input 元素并触发点击事件来打开文件选择器。