This example uses the which property of the event object to determine which mouse button is pressed.