Closed Bug 284944 Opened 20 years ago Closed 20 years ago

Javascript window.focus() does not work

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: philip, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

the .focus() method of a sub-window does not cause the window to be re-focussed
as it should.

Reproducible: Always

Steps to Reproduce:
1.Go to http://vogon.net/js_pb/
2.Click on the link on that page - a new window is created.
3.Click back on the main window, which will cover the sub window.
4. Click on the link a second time

Actual Results:  
Nothing happens

Expected Results:  
The sub-window should re-focus and be brought to the front.
Are you sure you didn't block that functionality?

Tools -> Options -> Web Features -> Advanced -> "Raise or lower windows"
Certain - all that is set are:

* Move or resize existing windows (tried turning this off - no difference)
* Disable or replace contect menus
* Change images.
Additional: The resizable=no attribute doesn't work either. The window continues
to be resizable. May or may not be related.
status=no doesn't do anything either...
*** Bug 284949 has been marked as a duplicate of this bug. ***
Using js developped for IE, you get everything you deserverve.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.