Assign an "onmousemove" event to a div element.
Mouse over the rectangle above, and get the coordinates of your mouse pointer.