var mouse = function(e){
var x = e.pageX || (e.clientX + document.body.scrollLeft);
var y = e.pageY || (e.clientY + document.body.scrollTop);
alert(x + " " + y);
};
window.onload = function(e) {
if(!e) { var e = window.event; }
mouse(e);
};
This works in IE and I get the proper mouse x and y coordinates. However, when ran in something other then IE I just get an alert "NaN NaN"
(I've tried searching)