On the problem of obtaining event in strict Mode

Hello, everyone. I want to block the right button in the browser, so I need the event event, but to get the event event in firefox is arguments.callee.caller.arguments [0]
so my code is var event = window.event | | arguments.callee.caller.arguments [0];

but this sentence cannot be executed in strict mode and will report an error, so how to get the event event of firefox in strict mode? thank you


if you use arguments.callee in strict mode, you will report an error. In addition, you can block the right menu bar directly

.
document.oncontextmenu = function(){
   return false;
}

Menu