/    Sign up×
Community /Pin to ProfileBookmark

Browser Window Focus Issue in Firefox

I was wondering if anyone had any insight or has encountered this situation before.

I have some javascript on a window that functions “onmouseover” to open a menu when the mouse is over an image. Now when I click a link in that menu it closes the menu and opens the link in a new window.

However if the new window does not cover up the initial browser window below, the initial window which is not the active window it still detects the mouse as being over the image and re-opens the menu in the inactive window below.

I was wondering if there’s a way to avoid this, or any suggestions on working around this?

This seems to only be the case in FF, in IE no mouse actions are detected by the inactive window.

Thanks.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@vicdanJan 28.2008 — Create a semi-transparent div covering the entire window, which would capture user input; layer it above the page content and below the menu -- and it should make your menu function as if it were a modal UI box.

I got the idea from Dojo's dijit.DialogUnderlay class, which they use to fake modal dialog boxes.

I hope this helps.
×

Success!

Help @tlols spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...