event.button property indicates which mouse button was pressed on the mouse to trigger the event.
Note: This property is read-only.
|0||When mouse left button is clicked.|
|1||When mouse middle button is clicked.|
|2||When mouse right button is clicked.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.