<html>
<head>
<script>
function getClickedElement(e){
var clickedElement=e.target; // target property of the event gives the clicked element.
}
</script>
</head>
<body onclick=”getClickedElement(event)”>
</body>
</html>