Unexpected access to “event” variable across browsers?

前端 未结 1 1207
野趣味
野趣味 2020-12-10 04:18

Let me begin by saying I understand that the below code has a major issue. Specifically, the event parameter is not passed into the function. What I don\'t unde

相关标签:
1条回答
  • 2020-12-10 04:47

    IE has always provided a global event variable, unlike what the W3C standards dictate. The other browsers are doing the same in order to provide backward-compatibility with websites developed with old IE versions in mind.

    While IE also has a global event variable, unlike the aforementioned browsers it does not assign that variable to the event that is currently firing.

    I believe it does.

    0 讨论(0)
提交回复
热议问题