docs.rodeo

MDN Web Docs mirror

HTMLInputElement

{{APIRef("HTML DOM")}} 

The HTMLInputElement interface provides special properties and methods for manipulating the options, layout, and presentation of {{HTMLElement("input")}}  elements.

{{InheritanceDiagram}} 

Instance properties

Also inherits properties from its parent interface, {{domxref("HTMLElement")}} .

Some properties only apply to input element types that support the corresponding attributes.

Instance properties that apply to any type of input element that is not hidden

Instance properties that apply only to elements of type checkbox or radio

Instance properties that apply only to elements of type image

Instance properties that apply only to elements of type file

Instance properties that apply only to visible elements containing text or numbers

Instance methods

Also inherits methods from its parent interface, {{domxref("HTMLElement")}} .

Events

Also inherits events from its parent interface, {{domxref("HTMLElement")}} .

Listen to these events using {{domxref("EventTarget.addEventListener", "addEventListener()")}}  or by assigning an event listener to the oneventname property of this interface:

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN