Menu
Hi all, I’m trying to alert the values, but it’s returning an error message.
the error message is: “e is not defined”
heres the code:
[code]
function doSomething(e) {
var e = window.event;
var posX = e.clientX;
var posY = e.clientY;
alert(“position x: ” + posX + ” ” + “position y: ” + posY);
}
This is a hook to an onmousemove event on the document body.
I’m really lost I know client support is poor I’m currently testing in Firefox, I’m horridly lost.