Easy Tutorial
❮ Att Global Draggable Tag Hgroup ❯

HTML onchange Event Attribute

HTML Event Attributes

Example

Run a script when an element changes:


Browser Support

All major browsers support the onchange event attribute.


Definition and Usage

The onchange attribute is triggered when the element's value changes.

The onchange attribute can be used with <input>, <textarea>, and <select> elements.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script Specifies the script to run when the onchange event is triggered.

❮ Att Global Draggable Tag Hgroup ❯