What properties can I use with event.target?

后端 未结 7 2012
醉酒成梦
醉酒成梦 2020-12-07 07:39

I need to identify elements from which events are fired.

Using event.target gets the respective element.

What properties can I use from there?<

相关标签:
7条回答
  • 2020-12-07 08:44

    An easy way to see all the properties on a particular DOM node in Chrome (I'm on v.69) is to right click on the element, select inspect, and then instead of viewing the "Style" tab click on "Properties".

    Inside of the Properties tab you will see all the properties for your particular element.

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