[Edit]
+
0
-
0
js capture right-click event
1 2 3 4 5 6 7 8 9 10 11 12 13<!doctype html> <html> <body> <button oncontextmenu="handleClick()">Right-click me</button> <script> function handleClick(){ console.log('oncontextmenu event occurred.'); } </script> </body> </html> <!-- Warning: oncontextmenu event is handled when context menu key on keyboard is pressed. -->