As far as I know, the onload="this.window.focus() works on every browser
except FF 2.
I have the tabs option turned off.
Is this a FF 2 bug or is there a preferred way to accomplish the result?
Roger
I tried self.focus(); but had same result. It fails to put the window
in focus with Firefox 2 but works with Firefox 1.5.7, IE 6 and 7 and
Opera 9.
This web site shows the same problem:
http://www.webreference.com/javascript/960826/windows.html
Clicking the "Create Window" button opens a new window. After clicking
the original window to hide the new window, clicking the "Put Window In
Focus" button fails on Firefox 2.
Roger
Clicking the "Put Window In Focus" button works for me in Firefox 2.
Check your Firefox 2 settings at
1. Go to Tools -> Options -> Content
2. Make sure "Enable JavaScript" is turned on.
3. Next to "Enable JavaScript", click the "Advanced" button.
4. Make sure that there is a check-mark in the box
[x] Raise or lower windows
If the setting "Raise or lower windows" is turned off, then
this disables the window.focus() method.
If that doesn't solve the problem, you may need to check whether
you have any "security policies" defined in Firefox 2 which may be
disabling window.focus() for all or some sites. See
• http://www.mozilla.org/projects/security/components/ConfigPolicy.html
• http://kb.mozillazine.org/Security_Policies
--
Cheers,
Ralph
Thank you - The "Raise or lower windows" option was unchecked. Checking
the box solved the problem.
Roger