Search.../

onInput( )

This standard element function is not supported for RichTextBox.

Description

Adds an event handler that runs when the input element receives input.

A text input receives an input event when a user changes its input value.

You can retrieve the input element's new value by getting the value from the target property of the Event passed to the handler you set using this function.

Syntax

function onInput(eventHandler: EventHandler): Element
eventHandler: function EventHandler(event: Event): void

onInput Parameters

NAME
TYPE
DESCRIPTION
eventHandler

The name of the function or the function expression to run when the input element receives input.

Returns

The element on which the event is now registered.

Return Type:

EventHandler Parameters

NAME
TYPE
DESCRIPTION
event

The event that occurred.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?