This code only displays coordinates in FF not in IE.

function catchit(){
document.onmousemove = mouseMove;
document.onmouseup = mouseUp;
}
function mouseCoords(ev){
if(ev.pageX || ev.pageY){
return {x:ev.pageX, y:ev.pageY};
}
return {
x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
y:ev.clientY + document.body.scrollTop - document.body.clientTop

};
};

function mouseMove(ev){

ev = ev || window.event;
mousePos = mouseCoords(ev);
}
function mouseUp(ev){
alert(ev.pageX+" - "+ev.pageY)
}

THANK YOU FOR YOUR HELP