Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

button property

Indicates which pointer device button has changed.

Document Object Model (DOM) Level 3 Events SpecificationInternet Explorer 9

Syntax

object.get_button(number* p);

Property values

Type: number

-1

Mouse move with no buttons pressed(MSPointerEvent only)

0

1

Middle mouse button press

2

  • Right mouse button press, or
  • Pen contact with barrel button pressed (MSPointerEvent only)

3

X1 (back) mouse button press (MSPointerEvent only)

4

X2 (forward) mouse button press (MSPointerEvent only)

5

Pen contact with eraser button pressed (MSPointerEvent only)

Standards information

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.