<script type="text/javascript">
function getMouseCoords( e ) {
e = e || window.event;
if ( e.pageX == null && e.clientX != null ) {
var html = document.documentElement;
var body = document.body;
e.pageX = e.clientX + (html && html.scrollLeft || body && body.scrollLeft || 0) - (html.clientLeft || 0);
e.pageY = e.clientY + (html && html.scrollTop || body && body.scrollTop || 0) - (html.clientTop || 0);
}
mX = e.pageX;
mY = e.pageY;
alert(mX+';'+mY);
}
</script>
<span id="idi" onMouseOver="getMouseCoords();">knopka </span>