How to Stop Websites from Resizing Firefox Windows
July 23rd, 2008
In addition to having the need to resize pop-up windows occasionally, we Firefox users also encounter annoyances such as websites forcibly resizing our browser window for no apparent reason. This has happened to me before with certain traffic exchanges where every time another site came up in the rotation, the window would suddenly shrink from full screen down to about one fourth of its normal size. This made it very difficult to view all of the content on the page without constantly pressing the maximize button in the upper right corner. Fortunately, while searching for information on regaining the ability to resize windows, I also found out the solution to this little annoyance. Here is what you need to do to prevent websites from resizing your Firefox windows at their whim:
- For Windows users, go to Tools >> Options from your browser menu. For Mac and Linux users, it’s Edit >> Preferences.
- Click on the tab at the top of the Options menu that says “Content”.
- Look to the right of the Enable Javascript checkbox and click the Advanced button.
- You should see a pop-up menu with the title of Advanced Javascript Settings that looks like this:

Now you need to uncheck the box to the left of “Move or resize existing windows”. It’s the first menu option and is highlighted by the dotted box in the screenshot above.
- Click OK and you’re done! No longer will you have to worry about having your browser window suddenly resized without your permission. Of course, if you want allow on-page scripts to resize the window for some reason in the future, you can always re-check the appropriate box.
This little tip has saved me many headaches, especially when surfing through traffic exchanges, paid-to-read (PTR), and paid-to-promote (PTP) sites, which seem to have more than their fair share of pages with annoying scripts that try to hijack your browser in some way.


Thanks for this tip!
It was getting on my nerves when some confirmation messages would squeeze all tabs into 300×200 window!
This was annoying the hell out of me lately! this post was of immense help
Yup i have the same experience like you too, thanks for the tips
Thanks for the tip. Firefox is a great piece of software.
hah, nice! thanks for posting this. very helpful.
great advice. thanks for the posting. makes for an interesting and informative read on an otherwise quiet day in the office.
ah thank you so much for posting this i hate when firefox decides to resize things