Tutorial Thursday

One thing I hate the most are popup windows but sometimes they just seem unavoidable. JavaScript pop-ups are all over the place and it is frustrating when you can’t resize the window or have access to the navigation bar. That is why I searched for a way to disable JavaScript pop-ups from opening in a new window, and now they will open in a tab.

Here are the few steps that you need to do this:

  1. Start Firefox.
  2. In the Address Bar type about:config and press Enter.
  3. Find the option that is named and double-click on it. Firefox Configuration
  4. You now need to change the value based upon how you want Firefox to handle the JavaScript pop-ups. The default option used to be “0” but they changed it to “2” recently. If you have Firefox set to open all new windows in tabs then setting “0” will also force all JavaScript windows to open in tabs, which is the option that I chose. Here is what all of the options do:
    • 0 – Open JavaScript windows the same way as you have Firefox handle new windows.
    • 1 – Allow all JavaScript windows to popup if requested.
    • 2 – Open all JavaScript windows the same way as you have Firefox handle new windows unless the JavaScript call specifies how to display the window.

    Firefox Configuration Change Value

  5. Restart Firefox.

This is probably one of my favorite “about:config” tweaks that I have done. I use tabs for a reason and that is because I don’t want to have windows open all over the place. I’m pretty sure that the Tab Mix Plus extension covers this feature but ever since Firefox 2 I haven’t really felt the need to install it.