title: Get mouse location during mouse down?
body: <p>How can I continuously get the position of the mouse whilst its button is being held down?</p>
  
  <p>I know I can do:</p>
  
  <pre><code>&lt;element onclick="functionName(event)"&gt;&lt;/element&gt;
  &lt;script&gt;
  function functionName(e){
  e.pageX
  e.pageY
  //do stuff
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and I know you can use the onmousedown event, but how would I continuously get the position while the button is still held down? </p>
  
  <p>Oddly I couldn't find this anywhere I looked.</p>