Tip: Due to lack of browser support, you may want to look at the button property instead. The MouseEvent button property is used to define the left or right click events. The DOM 3 Events Specification defines button identification attributes for mouse events. ; event.relatedTarget – is the element from which the mouse came (relatedTarget → target). 1: It indicates the middle mouse button. Syntax: event.button. Syntax: event.button. The buttons property returns a number that indicates which mouse button or mouse buttons were pressed when a mouse event was triggered. Check out the repository for more tutorials and a handful of … Return Value: This event return an integer value on mouse click events are: The other is event.buttons which is very similar to IE's old handling of event.button, with values 1, 2, 4 adding up if more than one button is held at the same time. The MouseEvent button property is used to define the left or right click events. Topics: MouseEvent, addEventListener, on, click, dblclick, mouseover, mouseout, mousemove, mousedown, enableMouseOver, drag and drop, mouseMoveOutside Target: EaselJS v0.8.2 This tutorial is part of the EaselJS GitHub repository.