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

不打扰是莪最后的温柔 提交于 2019-12-01 22:12:36

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/22552338/what-version-of-ie-doesnt-pass-the-event-as-argument-to-listeners

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!