WebReference.com - Online Education Resource

Sample of Mouse Capture

Mouse capture has been set to this tan division (DIV) at load time using the setCapture method. Move the mouse around and see how the text fields below will track the mousemove event through the x and y properties of the event object. Click anywhere to release the capture or to restore it.

Mouse Coordinates