How can I detect a rightmouse button event on mousedown?

后端 未结 3 536
春和景丽
春和景丽 2020-12-30 21:44

I am updating/debugging and expanding the capabilities of my draggable script and I need to be able to achieve the following result:

whatever.onRightMouseBut         


        
3条回答
  •  春和景丽
    2020-12-30 22:00

    It's not very simple. Quirksmode.org has an article about event properties.

    Look under 'Which mouse button has been clicked?' / 'Right click'. It varies by browser.

提交回复
热议问题