mozilla

Compare Revisions

Event.button

Change Revisions

Revision 17641:

Revision 17641 by FunPackedShow on

Revision 17642:

Revision 17642 by Matej Lednar on

Title:
event.button
event.button
Slug:
DOM/event.button
DOM/event.button
Tags:
DOM, Gecko, "Gecko DOM Reference"
DOM, Gecko, "Gecko DOM Reference"
Content:

Revision 17641
Revision 17642
n20var buttonCode = event.button;n20event.button
21</pre>
22    <h3>
23      Example
24    </h3>
25    <pre>
26<span class="Apple-style-span" style="font-family: 'Courier New',
 > 'Andale Mono', monospace; font-size: 14px; white-space: pre; fon
 >t-weight: normal; line-height: normal;">var buttonCode = event.bu
 >tton;</span>
n23      Returns an integer value indicating the button that changedn29      Property returns an integer value indicating the button tha
> state.>t changed state.
n32      <li>n
33        <div class="note">
34          Note that this convention is not followed in Internet E
>xplorer: see <a class="external" href="http://www.quirksmode.org/ 
>js/events_properties.html#button" title="http://www.quirksmode.or 
>g/js/events_properties.html#button">QuirksMode for details</a>. 
35        </div>
36      </li>
tt39    <h4>
40      Note
41    </h4>
42    <div class="note">
43      Note that this convention is not followed in Internet Explo
 >rer: see <a class="external" href="http://www.quirksmode.org/js/e
 >vents_properties.html#button" title="http://www.quirksmode.org/js
 >/events_properties.html#button">QuirksMode for details</a>.
44    </div>

Back to History