You should never use this property; it does not exist in standard. Please see:
https://developer.mozilla.org/en-US/docs/Web/API/Window[
^].
This property probably only exist in IE, and it reflects the big conceptual technology abuse: passing the event information through outer context, so this object is only defined when the event is invoked. The whole idea to use such unreliable technique is badly wrong, but who tells that anything implemented in IE can be trusted?
The correct approach is to pass event object as the first argument of a handler. This is the simplest example:
<button onclick="myHandler(event)">Some Button</button> <!--
In JavaScript, you may have
function myHandler(eventInstance) {
}
With
click
, you don't have any essential information, but with mouse or keyboard events you can get mouse coordinates, or key data, and so on. Please see:
https://developer.mozilla.org/en-US/docs/Web/API/Event[
^].
Try to use correct standard techniques, never buy IE provocations. :-)
—SA