[Javascript] Suppressing mouse-over events

Matt Barton javascript at mattbarton.org
Wed Mar 24 07:39:02 CST 2004


> Have onfocus and onblur-handlers on the window that contains your menu,
> setting a variable (bFocus = true/false) when the window focus is
> changed. On the onmouseoverevent all you have to do is check the bFocus
> variable. If it's false, then your window is out of focus, so don't
> display the menu.
>
> Makes any sense? :)

Perfect sense yes, thank you.  If that does the trick (and I'm sure it will)
I'll owe you a pint...




More information about the Javascript mailing list