Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Firefox 73.0: javascript function window.open()

  • 3 odpovědi
  • 1 má tento problém
  • 215 zobrazení
  • Poslední odpověď od Pastis
  • Vyřešeno

Height and width does not work as before. Open smaller window...

Example:

function PopUpWin(source,name,width,height) {

 window.open(source, name,"location=0,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+"");

}

Height and width does not work as before. Open smaller window... Example: function PopUpWin(source,name,width,height) { window.open(source, name,"location=0,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+""); }

Zvolené řešení

I disable the plugin (had 90% zoom as default) and set the new Default Zoom setting to 90% in the Options/Preferences page and it solved my problems! Thank you!

Přečíst dotaz v kontextu 👍 0

Všechny odpovědi (3)

The problem is the plugin "Default zoom" for Firefox...

Hi Pastis, the height and width set in window.open() are adjusted according to your global zoom level. Firefox 73 introduced a Default Zoom setting on the Options/Preferences page, which could involve internal code changes that affect this issue.

Do you recall any changes that you or an add-on might have made to the Default Zoom setting?

For experimenting:

I have a test page that generates a nominal 800x600 popup window (third link):

https://www.jeffersonscher.com/res/popit.html

What Firefox considers Default Zoom of 100% actually shows me the Windows default of 125%, so the popup window is enlarged proportionately. If I set the Default Zoom in Firefox to 80% to cancel out the Windows default of 125%, then the popup is sized as requested, plus borders and toolbars.

Zvolené řešení

I disable the plugin (had 90% zoom as default) and set the new Default Zoom setting to 90% in the Options/Preferences page and it solved my problems! Thank you!