Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

On websites which open pop-under windows, Firefox 4 seems to be opening these over the current window instead of under. Is this a bug or an intentional feature?

  • 6 antwoorde
  • 254 hierdie probleem
  • 3 views
  • Laaste antwoord deur marques99

more options

I have noticed a problem on FF4 when browsing sites that open pop-under windows on a user action. With all other browsers (including FF3) these open underneath the main window, but on Firefox 4 they open over the top - acting as pop-ups and not pop-unders.

While pop-unders are annoying, it is even more annoying to have them keep appearing as pop-ups instead.

I have run some tests and the following code successfully opens a pop-under on all browsers except Firefox 4.

It appears that window.focus() is not correctly bringing the current window to the top.

Example code:

   var w = window.open('http://www.mydomain.com/', 'mywin', 'width=400,height=300,toolbar=1,menubar=1,resizable=1,scrollbars=1');
   if(w){
       w.blur();
       window.focus();
   }
I have noticed a problem on FF4 when browsing sites that open pop-under windows on a user action. With all other browsers (including FF3) these open underneath the main window, but on Firefox 4 they open over the top - acting as pop-ups and not pop-unders. While pop-unders are annoying, it is even more annoying to have them keep appearing as pop-ups instead. I have run some tests and the following code successfully opens a pop-under on all browsers except Firefox 4. It appears that window.focus() is not correctly bringing the current window to the top. Example code: var w = window.open('http://www.mydomain.com/', 'mywin', 'width=400,height=300,toolbar=1,menubar=1,resizable=1,scrollbars=1'); if(w){ w.blur(); window.focus(); }

All Replies (6)

more options

This is normal. Firefox 4 has disabled the default "window flip". - go to adress about:config - accept and search dom.disable_window_flip set to false; And popunder, blur/focus javascript function will be back ;)

Gewysig op deur MrPing

more options

FF3 has the same dom.disable_window_flip set to true, and the example above is not an issue. Using window.focus and window.blur work, and pop-unders pop 'under' not 'over' as they do in FF4.

more options

hum.. when i set dom.disable_window_flip to false in FF4 pop-unders it's ok. Yes, the parameter is to true in FF3 and pop-unders ok. Strange...

more options

there are multiple ways of having pop under working in firefox 4 :-) $1000 and it works - got.by.0@gmail.com

Gewysig op deur c0der

more options

Is this just a browser configuration? How do you override this via JavaScript and override the browser config?

more options

So the developers of firefox thought it would be a good idea to force pop unders to pop up? Do they think websites are going to stop using them? If I had to choose I rather have a pop under then a pop up. Chrome, IE and Safari handle pop unders the same why does firefox have to be difficult.