Okay,
so I am working on a web application, that has lots of events, and I need to be able to trigger a function (probably through an event firing). Whenever a user leaves the page with the mouse. I have a timer being triggered every x milliseconds and I want to be able to cancel this interval when the users mouse leaves the page.
I have tried the onmouseout, onblur on the window, document, body and the web application division (note the web application div covers 100% of the document).
None of these work, I also tried triggering the event when the mouse got within 5 pixels of the edge of the document, however this was not reliable and even if it was, Its not really what I want.
*also note this only has to work with Google Chrome.
Cheers, Josh
so I am working on a web application, that has lots of events, and I need to be able to trigger a function (probably through an event firing). Whenever a user leaves the page with the mouse. I have a timer being triggered every x milliseconds and I want to be able to cancel this interval when the users mouse leaves the page.
I have tried the onmouseout, onblur on the window, document, body and the web application division (note the web application div covers 100% of the document).
None of these work, I also tried triggering the event when the mouse got within 5 pixels of the edge of the document, however this was not reliable and even if it was, Its not really what I want.
*also note this only has to work with Google Chrome.
Cheers, Josh
Comment