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.

javascript window.focus error

  • 2 antwoorde
  • 3 hierdie probleem
  • 29 views
  • Laaste antwoord deur Col_Boogie

more options

Created window with window.open If I remove window from top, window.focus() does not work. Expecting new window to come back on top. See http://www.americasfreedompressalliance.us/VNotes2.html as example, all HTML code included Works properly with IE

Created window with window.open If I remove window from top, window.focus() does not work. Expecting new window to come back on top. See http://www.americasfreedompressalliance.us/VNotes2.html as example, all HTML code included Works properly with IE

Gekose oplossing

Firefox has a setting that governs whether scripts can change the window z-order. By default, scripts are supposed to be disabled from doing that. You can test whether that is the issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom.d and pause while the list is filtered

(3) Double-click the dom.disable_window_flip preference to switch the value from true to false

Does that make any difference?

Lees dié antwoord in konteks 👍 3

All Replies (2)

more options

Gekose oplossing

Firefox has a setting that governs whether scripts can change the window z-order. By default, scripts are supposed to be disabled from doing that. You can test whether that is the issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom.d and pause while the list is filtered

(3) Double-click the dom.disable_window_flip preference to switch the value from true to false

Does that make any difference?