Onmousemove event not working in chrome
- by user1316760
I have coding for onmousemove event working well in firefox and IE......but not in chrome
var mouse;
function storeMouse(e) {
if (!e) e = window.event;
mouse = { clientX: e.clientX, clientX: e.clientY };
}
function test(e) {
alert(mouse.clientX);
if (mouse.clientX < 150) {
var agree = confirm("Are you sure to leave this page");
if (!agree) {
return false;
}
else {
}
}
}
Can anyone help me.