I've been trying to figure out how to detect that the user has moved
the mouse out of the browser window. It's for a "resizer" tool I'm
working on. I've been using the code below, which only work on IE.
I'm really trying to find some sort of cross browser way (hoping to
find an answer within Prototype, but still looking so far).
Here's what I'm using in IE:
Event.observe(document, "mouseout",
this._onDocumentMouseOut.bind(this));
_onDocumentMouseOut: function(event){
if (!event.toElement){
alert("Out of browser<br>");
}
}
Thanks for any help
-M
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---