mozilla

Revision 437953 of GlobalEventHandlers

  • Revision slug: Web/API/GlobalEventHandlers
  • Revision title: GlobalEventHandlers
  • Revision id: 437953
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{DomRef}}

The GlobalEventHandlers interface describes the event handlers common to several interfaces like {{domxref("HTMLElement")}}, {{domxref("Document")}}, or {{domxref("Window")}}. Each of these interfaces can implement more event handlers.

GlobalEventHandlers is a raw interface and no object of this type can be created.

Properties

The events properties, of the form onXYZ, are defined on the {{domxref("GlobalEventHandlers")}}, and implemented by {{domxref("HTMLElement")}}, {{domxref("Document")}}, and {{domxref("Window")}}.

{{domxref("GlobalEventHandlers.onabort")}}
Is an {{domxref("EventHandler")}} representing the code to be called whent the {{event("abort")}} is called.
{{domxref("GlobalEventHandlers.onblur")}}
 
{{domxref("GlobalEventHandlers.onerror")}}
 
{{domxref("GlobalEventHandlers.onfocus")}}
 
{{domxref("GlobalEventHandlers.oncancel")}}
 
{{domxref("GlobalEventHandlers.oncanplay")}}
 
{{domxref("GlobalEventHandlers.oncanplaythrough")}}
 
{{domxref("GlobalEventHandlers.onchange")}}
 
{{domxref("GlobalEventHandlers.onclick")}}
 
{{domxref("GlobalEventHandlers.onclose")}}
 
{{domxref("GlobalEventHandlers.oncontextmenu")}}
 
{{domxref("GlobalEventHandlers.oncuechange")}}
 
{{domxref("GlobalEventHandlers.ondblclick")}}
 
{{domxref("GlobalEventHandlers.ondrag")}}
 
{{domxref("GlobalEventHandlers.ondragend")}}
 
{{domxref("GlobalEventHandlers.ondragenter")}}
 
{{domxref("GlobalEventHandlers.ondragexit")}}
 
{{domxref("GlobalEventHandlers.ondragleave")}}
 
{{domxref("GlobalEventHandlers.ondragover")}}
 
{{domxref("GlobalEventHandlers.ondragstart")}}
 
{{domxref("GlobalEventHandlers.ondrop")}}
 
{{domxref("GlobalEventHandlers.ondurationchange")}}
 
{{domxref("GlobalEventHandlers.onemptied")}}
 
{{domxref("GlobalEventHandlers.onended")}}
 
{{domxref("GlobalEventHandlers.oninput")}}
 
{{domxref("GlobalEventHandlers.oninvalid")}}
 
{{domxref("GlobalEventHandlers.onkeydown")}}
 
{{domxref("GlobalEventHandlers.onkeypress")}}
 
{{domxref("GlobalEventHandlers.onkeyup")}}
 
{{domxref("GlobalEventHandlers.onload")}}
 
{{domxref("GlobalEventHandlers.onloadeddata")}}
 
{{domxref("GlobalEventHandlers.onloadedmetadata")}}
 
{{domxref("GlobalEventHandlers.onloadstart")}}
 
{{domxref("GlobalEventHandlers.onmousedown")}}
 
{{domxref("GlobalEventHandlers.onmouseenter")}}
 
{{domxref("GlobalEventHandlers.onmouseleave")}}
 
{{domxref("GlobalEventHandlers.onmousemove")}}
 
{{domxref("GlobalEventHandlers.onmouseout")}}
 
{{domxref("GlobalEventHandlers.onmouseover")}}
 
{{domxref("GlobalEventHandlers.onmouseup")}}
 
{{domxref("GlobalEventHandlers.onmousewheel")}}
 
{{domxref("GlobalEventHandlers.onpause")}}
 
{{domxref("GlobalEventHandlers.onplay")}}
 
{{domxref("GlobalEventHandlers.onplaying")}}
 
{{domxref("GlobalEventHandlers.onprogress")}}
 
{{domxref("GlobalEventHandlers.onratechange")}}
 
{{domxref("GlobalEventHandlers.onreset")}}
 
{{domxref("GlobalEventHandlers.onscroll")}}
 
{{domxref("GlobalEventHandlers.onseeked")}}
 
{{domxref("GlobalEventHandlers.onseeking")}}
 
{{domxref("GlobalEventHandlers.onselect")}}
 
{{domxref("GlobalEventHandlers.onshow")}}
 
{{domxref("GlobalEventHandlers.onsort")}}
 
{{domxref("GlobalEventHandlers.onstalled")}}
 
{{domxref("GlobalEventHandlers.onsubmit")}}
 
{{domxref("GlobalEventHandlers.onsuspend")}}
 
{{domxref("GlobalEventHandlers.ontimeupdate")}}
 
{{domxref("GlobalEventHandlers.onvolumechange")}}
 
{{domxref("GlobalEventHandlers.onwaiting")}}
 

Methods

This interface defines no method.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'webappapis.html#globaleventhandlers', 'HTMLElement')}} {{Spec2('HTML WHATWG')}} Initial definition

Browser compatibility

Though browsers do not explicitely use the GlobalEventHandlers, the properties defined here are implemented on {{domxref("HTMLElement")}}, {{domxref("Document")}}, and {{domxref("Window")}}.

{{CompatibilityTable}}

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

See also

  • {{domxref("Element")}}

Revision Source

<div>
  {{DomRef}}</div>
<p>The <strong><code>GlobalEventHandlers</code></strong> interface describes the event handlers common to several interfaces like {{domxref("HTMLElement")}}, {{domxref("Document")}}, or {{domxref("Window")}}. Each of these interfaces can implement more event handlers.</p>
<p><code>GlobalEventHandlers</code> is a raw interface and no object of this type can be created.</p>
<h2 id="Properties">Properties</h2>
<p>The events properties, of the form <code>onXYZ</code>, are defined on the {{domxref("GlobalEventHandlers")}}, and implemented by {{domxref("HTMLElement")}}, {{domxref("Document")}}, and {{domxref("Window")}}.</p>
<dl>
  <dt>
    {{domxref("GlobalEventHandlers.onabort")}}</dt>
  <dd>
    Is an {{domxref("EventHandler")}} representing the code to be called whent the {{event("abort")}} is called.</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onblur")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onerror")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onfocus")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oncancel")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oncanplay")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oncanplaythrough")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onchange")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onclick")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onclose")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oncontextmenu")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oncuechange")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondblclick")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondrag")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragend")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragenter")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragexit")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragleave")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragover")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondragstart")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondrop")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ondurationchange")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onemptied")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onended")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oninput")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.oninvalid")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onkeydown")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onkeypress")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onkeyup")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onload")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onloadeddata")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onloadedmetadata")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onloadstart")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmousedown")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmouseenter")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmouseleave")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmousemove")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmouseout")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmouseover")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmouseup")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onmousewheel")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onpause")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onplay")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onplaying")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onprogress")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onratechange")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onreset")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onscroll")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onseeked")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onseeking")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onselect")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onshow")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onsort")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onstalled")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onsubmit")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onsuspend")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.ontimeupdate")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onvolumechange")}}</dt>
  <dd>
    &nbsp;</dd>
  <dt>
    {{domxref("GlobalEventHandlers.onwaiting")}}</dt>
  <dd>
    &nbsp;</dd>
</dl>
<h2 id="Methods">Methods</h2>
<p><em>This interface defines no method.</em></p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'webappapis.html#globaleventhandlers', 'HTMLElement')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>Initial definition</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>Though browsers do not explicitely use the <code>GlobalEventHandlers</code>, the properties defined here are implemented on {{domxref("HTMLElement")}}, {{domxref("Document")}}, and {{domxref("Window")}}.</p>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Firefox (Gecko)</th>
        <th>Chrome</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>Android</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatUnknown}}</td>
        <td rowspan="1">{{CompatUnknown}}</td>
        <td rowspan="1">{{CompatUnknown}}</td>
        <td rowspan="1">{{CompatUnknown}}</td>
        <td rowspan="1">{{CompatUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("Element")}}</li>
</ul>
Revert to this revision