Event.pointerY returns the vertical position of the mouse within the current browser window.

Syntax


  var yPos = Event.pointerY(event);

Example


function showPosition(e) {
    alert("Your mouse is at " + Event.pointerY(e) + "px");
}

Event.observe(document, "mousedown", showPosition, false);