0 out of 2 rated this helpful - Rate this topic

button property

Gets the mouse button that caused an event.

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

Syntax

JavaScript

p = object.button

Property values

Type: Number

0

The left mouse button caused the event.

1

The middle mouse button caused the event.

2

The right mouse button caused the event.

Standards information

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.