Onmousemove event not working in chrome
Posted
by
user1316760
on Stack Overflow
See other posts from Stack Overflow
or by user1316760
Published on 2012-04-09T05:27:24Z
Indexed on
2012/04/09
5:28 UTC
Read the original article
Hit count: 211
JavaScript
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.
© Stack Overflow or respective owner