Skip to content
Advertisement

What version of IE doesn’t pass the event as argument to listeners?

As some old versions of IE didn’t provide the event as argument to event listeners, we got used to (event||window.event).

In order to decide whether it can still make some sense to have this in a modern library, I tried to look at what versions were concerned but I couldn’t find this information.

So, what’s the most recent version of IE that didn’t provide the event as argument ?

Advertisement

Answer

Internet Explorer provides a global object window.event, which references the last event. And before IE9 there are no arguments in the handler.

Get from

Advertisement