How to access Event.target in IE9?

前端 未结 6 644
耶瑟儿~
耶瑟儿~ 2021-02-08 02:12

The HTML DOM object model defines an Event object with a target property.

Looking at MSDN, Microsoft documents a target property. They also document srcElem

6条回答
  •  无人及你
    2021-02-08 02:40

    event.target ?

    Do you need to check on it and assign that to a variable and use that instead ..

      var target = event.target ? event.target : event.srcElement;
    

    might be missing the point...

提交回复
热议问题