This example uses the HTML DOM to assign an "onmousemove" event to a div element.
Mouse over the rectangle above, and get the coordinates of your mouse pointer.