ExampleShow which event type was triggered:
Try it yourself » |
The target property specifies which DOM element triggered the event.
event.target |
Parameter | Description |
---|---|
event | Required. Specifies the event to check. The event parameter comes from the event binding function |