title: html body ondblclick get clicked element
body: <p>so in my html i have this portion:</p>
  
  <pre><code>&lt;body ondblclick="myfunc();"&gt;
  &lt;div id="id1"&gt;dasd&lt;/div&gt;
  &lt;div id="id2"&gt;dasda&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>and in javascript the function is :</p>
  
  <pre><code>function myfunc() {
      do stuff here...
  }
  </code></pre>
  
  <p>i want to know inside myfunc() on which element of the html body the doubleclick was made, because i don't want to triger myfunc() on every doubleclicked element</p>
  
  <p>so how can i detect the id of the element doubleclicked?</p>