input

  • Revision slug: Mozilla_event_reference/input
  • Revision title: input
  • Revision id: 322599
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

The input event is fired when the value of an element changes or the content of an element with the attribute contenteditable is modified.

General info

Specification
HTML5
Interface
HTMLEvent
Bubbles
Yes
Cancelable
No
Target
Element
Default Action
The value or the content is modified.

Properties

{{OpenEventProperties()}}{{CloseEventProperties()}}

Related Events

{{KeyRelatedEvents()}}

Revision Source

<p>The <code>input</code> event is fired when the value of an element changes or the content of an element with the attribute contenteditable is modified.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://dev.w3.org/html5/spec/common-input-element-apis.html#event-input-input">HTML5</a></dd>
  <dt style="float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    HTMLEvent</dd>
  <dt style="float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    Element</dd>
  <dt style="float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    The value or the content is modified.</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{CloseEventProperties()}}</p>
<h2>Related Events</h2>
<p>{{KeyRelatedEvents()}}</p>
Revert to this revision