JavaScript Event Button Test Page

Click Here

onMouseDown onMouseUp onClick
event.button

Test Results

Firefox 2IESafariOpera 9
WinLinuxMac673 [Win]3 [Mac]2 [Mac]GWT 1.4 [Mac]
buttonMDMUclickMDMUclickMDMUclickMDMUclickMDMUclickMDMUclickMDMUclickMDMUclickMDMUclickMDMUclick
Left 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0
Middle 1 1 1 1 1 4 4 4 4 0 1 0 0 0 1 1 1
Right 2 2 2 2 2 0 2 2 2 2 2 2 2

Notable Gotchas