A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Element/input below:

input ยท WebPlatform Docs

input Overview Table Synchronous No Bubbles No Target dom/Element Cancelable No Default action ?

## Examples

The following script queries the event target as the text in a textArea is changed.

<script type="text/javascript">
function handleInput(ev) {
    alert(ev.target.value);
}
window.onload = function() {
    document.getElementById('myTextArea').addEventListener('input',handleInput,false);
}
</script>
<textarea id="myTextArea">Edit this text.</textarea>
Notes Remarks

You can use the oninput to detect when the contents of a textArea, input type=text, or input type=password have changed. This event occurs immediately after modification, unlike the change event, which occurs when the element loses focus. To invoke this event, do one of the following:

Syntax Standards information See also External resources Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4