Find coordinate values using mouse events in java script
<p>I want to record x coordinates in the following situation</p>

<p>when mouse is pressed down i should get X1 and if mouse is moved keeping button pressed and then when it is unpressed at that time X2 </p>

<p>i can detect mouse down and mouse up events but not sure how to do it what i want</p>
