Denys Séguret
Denys Séguret

Reputation: 382464

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 ?

Upvotes: 3

Views: 83

Answers (1)

Vasiliy vvscode Vanchuk
Vasiliy vvscode Vanchuk

Reputation: 7169

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

Upvotes: 3

Related Questions