Consider the following code:
<input id="myinput" type="text" size="40" onkeydown="myFunction()">
function myFunction() {
console.log(event);
}
event is a global object and is known inside the event handler myFunction. However, Firefox throws an error:event is not defined while Chrome and IE output KeyboardEvent {...}. This is one of the most crazy things I have met. Any satisfactory explanation?