What is the work-around to handle window.event.srcElement
in Windows 8 and IE10?
Asked
Active
Viewed 3,358 times
2
1 Answers
4
The official event object property to get the source element is event.target
.
Since IE9, Microsoft is moving closer and closer to the official web standards.
Kind of related: How can I make event.srcElement work in Firefox and what does it mean?

Community
- 1
- 1

Felix Kling
- 795,719
- 175
- 1,089
- 1,143
-
1Or to be more precise and support also older browsers: var target = event.target || event.srcElement – Samuli Hakoniemi Apr 12 '13 at 09:39