1.e.target and this
-
e.target returns the object (element) that triggered the event
-
This returns the object (element) to which the event is bound
-
e.target clicks on which element, which element is returned; which element of this is bound to the event, and who is returned
Event object property method | Description |
---|---|
e.target | Returns the criteria of the trigger event object |
e.srcElement | Return the trigger event object for non-standard ie6-8 use |
e.type | Return event type such as click mouseover without on |
e.cancleBubble | This attribute prevents the use of bubbling non-standard ie6-8 |
e.returnValue | This attribute prevents the default event (default behavior) non-standard ie6-8 use, such as not letting the link jump |
e.preventDefault() | This property prevents default events (default behavior) criteria such as not allowing links to jump |
e.stopPropagation() | Bubbling prevention standard |