dev.e.loper
dev.e.loper

Reputation: 36044

Javascript - window.open 'location=no' still shows addressbar in Firefox

I'm opening a window using window.open and setting location parameter to no. In IE9 the location/addressbar doesn't show, however in Firefox it is still shown. Why does Firefox still show location bar even when I say 'location=no'?

Upvotes: 1

Views: 5946

Answers (1)

anthony sottile
anthony sottile

Reputation: 69944

It's up to the useragent to determine which functionality to support. It seems (and rightfully so) that firefox deemed it a security problem to disable address bar. There is likely an about:config to turn it on, but I definitely wouldn't count on the "hiding address bar" functionality to be cross browser.

EDIT: actually in your linked article: dom.disable_window_open_feature.location defaults to true in firefox 3 (search under "location" section)

Upvotes: 4

Related Questions