Javascript onClick get element : <p>I want to have multiple elements calling one function with onClick, is there anyway to get what element called it though?</p>

<p>I thought about giving each on an id and doing function(1) and then doing it based of that but is there anyway to dynamically do this?</p>
