title: Calling Javascript function multiple times
body: <p>I have a Simple JavaScript Function:</p>
  
  <pre><code>function f1()
  {
      alert("HI");
  }
  </code></pre>
  
  <p>I'm calling the same Javascript function from two places, say:</p>
  
  <pre><code>&lt;input type="submit" id="btn1" onclick="f1()"/&gt;
  
  &lt;input type="submit" id="btn2" onclick="f1()"/&gt;
  </code></pre>
  
  <p>How to find the target element which called this Function?</p>
  
  <p>EDIT: How to check if the element is a button or some other? </p>