Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firefox 2 :Window Now Opens Behind Original 1

Status
Not open for further replies.

xweyer

MIS
Sep 7, 2000
140
US
I use an online bookmark storage site (murl.com) that utilizes a bookmark to run javascript as a shortcut to storing urls. The script works with Firefox 2 except that now the window it opens is hidden behind the window that was open previously. In IE and all earlier versions of Firefox the window would open in front of the existing window as intended.

Anyone have an idea as to why this might be happening?

The script as is follows.

javascript:murl_r3a1n4='(location.href)+'&title='+escape(document.title);window.open
(murl_r3a1n4,'Surfer','toolbar=no,scrollbars=yes,resizable=yes,
directories=no,WIDTH=320,HEIGHT=260');window.focus();
 
Presumably it's the window.focus() that is being blocked by Firefox. Have you tried the JavaScript settings in Firefox? Tools -> Options
Content
Advanced button next to "Enable JavaScript"

To my non-JavaScript trained eye, "Raise or lower windows" seems the most likely. Try making sure that's ticked.

If not that one, perhaps "Move or resize existing windows" but I doubt it.
 
Thanks, SPV.

You nailed it. The "Raise or Lower Windows" option was unchecked. Once I checked it the window came up properly.

Your non-JavaScript trained eyes are a lot better than mine. I would have passed this right by assuming that since the window was being opened the option wasn't relevant.

Good catch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top