The target method is applied to events "event.target", and returns the DOM element that was triggered by the event along with its possible properties.
In the following example, clicking on the button, on "p" or on "div" will return the name of the html element or the content inside it.
Interesting Articles