This example uses the addEventListener() method to attach a "mousemove" event to a div element.
Mouse over the rectangle above, and get the coordinates of your mouse pointer.