event.buttons property indicates which mouse button or buttons were pressed on the mouse to trigger the event.
Note: This property is read-only.
|1||When mouse left button is clicked.|
|2||When mouse right button is clicked.|
|3||When both left and right mouse button is clicked.|
|4||When middle mouse button is clicked.|
|5||When both left and middle mouse button is clicked.|
|6||When both right and middle mouse button is clicked.|
|7||When left, right and middle mouse button is clicked.|
|8||When fourth mouse button is clicked (typically the "Browser Back" button).|
|16||When fifth mouse button is clicked (typically the "Browser Forward" button).|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.