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.



6 responses

26 03 2008

You rock dude! I’ve been looking for this information for %$#@ing MONTHS!!! In your face, annoying corporate wankers!

25 09 2008
Jerome Joy

And no issue to use a new javascript command to hide the nav/location-bar ? with a javascript action on dom.disable_window_open_feature.location to change the “true” by false automatically on an open-window ? This needs to force the browser-client to open the new window with no bar (except the title-bar and status-bar) …
This would be useful …


9 04 2009

I completly agree with norton… his comment could have not been better!

Thanks so much!

2 03 2010

Can I change this value using JavaScript ?


3 08 2011


I am jag. as per User requirement, I need to Hide address bar in Pop up window(Security reasons). i used“”, “mywindow”, “location=0,menubar=0,status=0,scrollbars=0,width=100,height=100”); in my JavaScript Which is working fine. But, for mozilla we need to set Dom.disable_window_open_feature.location value.

In Web application how can i set this in users firfox browser? Is there any way to set this using java script. I want setDom.disable_window_open_feature.location value using JavaScript before i use How can i do this?

Thank you,

20 03 2012

finally thank you.

@Jag, this idea is stupid, that is why there are options. there is never a need to hide the location. never ever


Get every new post delivered to your Inbox.

%d bloggers like this: