Stop javascript disabling location bar in Firefox

16 08 2007

Firefox has some nice anti-annoyance features such as disabling various Javascript tricks but one thing that isn’t available in the options dialog is the ability to stop new windows from disabling the address bar where you type in the url with the ‘location=no’ javascript attribute when opening new windows. Some times this is useful for windows that are designed to be small but often it is just an annoyance or used to hide the URL from the user.

Its extra annoying if you like to use tabs since when you make a new one in a window with the location bar disabled the new tab doesn’t have an address bar.

You can disable the attribute in about:config:
1) Type ‘about:config’ into the address bar
2) Filter for ‘dom’
3) Set ‘Dom.disable_window_open_feature.location‘ to true

There are also a bunch of other DOM options such as stopping new windows from opening with out the menubar (Dom.disable_window_open_feature.menubar), scrollbars (Dom.disable_window_open_feature.scrollbars) and such.

Advertisements