How to get return value from mouse capturing fucntion?
- by Babiker
How to get return value from mouse capturing function?
function getMousePosition(e)
{
positionX = e.pageX;
positionY = e.pageY;
if (positionX < 0){positionX = 0;}
if (positionY < 0){positionY = 0;}
return positionX + " " + positionY;
}
as in var mousePositions = getMousePosition(e);