javascript event.target not working in mozilla

后端 未结 5 665
春和景丽
春和景丽 2021-01-19 15:10


        
5条回答
  •  星月不相逢
    2021-01-19 15:31

    event is undefined in firefox, because firefox doesn't have this property and instead you can provides an event to an event handler function as a parameter.

    However your code is fine to work in Chrome and IE

    Further I would also have script a type like

提交回复
热议问题