Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <script> function myFunction(e) { alert(e.currentTarget); } </script> </head> <body onclick="myFunction(event)"> <p> Click on a paragraph. An alert box will alert the element whose eventlistener triggered the event.</p> <p> <strong>Note:</strong> The currentTarget property does not necessarily return the element that was clicked on, but the element whose eventlistener triggered the event.</p> </body> </html>
Result:
W3Schools.com - Try it yourself