title: How to get div clicked part in javascript?
body: <p>I am trying to replicate something like a volume slider or video seekbar where, when the user clicks a point, the indicator jumps to that location.</p>
  
  <p>To do that, I am trying to get the position of a click event on a <code>div</code>. When user clicks somewhere on my div I am trying to return <code>x</code>, <code>y</code> coords.</p>
  
  <p>So far I just have a <code>div</code> and a basic listener:</p>
  
  <pre><code>&lt;div class="heybro" style="width:100px;height:100px;background:black;"&gt;&lt;/div&gt;
  
  $('.heybro').click(function(){
      alert("something");
  });
  </code></pre>