MozillaZine

Dom.disable window open feature.location

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 00:17, 27 November 2005
Unarmed (Talk | contribs)

<-- Previous diff
Revision as of 13:54, 13 December 2005
Asqueella (Talk | contribs)
(replace Location Bar with a link to category)
Next diff -->
Line 4: Line 4:
Web authors who use [http://developer.mozilla.org/en/docs/window.open <code>window.open()</code>] to create new browser windows have the option of specifying [http://developer.mozilla.org/en/docs/window.open#Toolbar_and_chrome_features which chrome features appear on the window] (menu bars, toolbars, the status bar, etc.) and [http://developer.mozilla.org/en/docs/window.open#Window_functionality_features what window functionality is present] (whether it&rsquo;s resizable, whether it has scrollbars, etc.). Web authors who use [http://developer.mozilla.org/en/docs/window.open <code>window.open()</code>] to create new browser windows have the option of specifying [http://developer.mozilla.org/en/docs/window.open#Toolbar_and_chrome_features which chrome features appear on the window] (menu bars, toolbars, the status bar, etc.) and [http://developer.mozilla.org/en/docs/window.open#Window_functionality_features what window functionality is present] (whether it&rsquo;s resizable, whether it has scrollbars, etc.).
-Oftentimes these parameters make a popup window less useful, or even obfuscate the popup&rsquo;s contents and origin. This preference allows you to ignore the part of <code>window.open()</code> calls that tries to hide the [[Location Bar]].+Oftentimes these parameters make a popup window less useful, or even obfuscate the popup&rsquo;s contents and origin. This preference allows you to ignore the part of <code>window.open()</code> calls that tries to hide the [[:Category:Location Bar|Location Bar]].
==Possible values and their effects== ==Possible values and their effects==
Line 10: Line 10:
Ignore <code>"location=no"</code> in the window features argument of <code>window.open()</code> and prevent popups from hiding the [[Location Bar]]. (Default) Ignore <code>"location=no"</code> in the window features argument of <code>window.open()</code> and prevent popups from hiding the [[Location Bar]]. (Default)
===False=== ===False===
-Allow popups to hide the [[Location Bar]].+Allow popups to hide the [[:Category:Location Bar|Location Bar]].
==Caveats== ==Caveats==

Revision as of 13:54, 13 December 2005

Contents

Background

Web authors who use window.open() to create new browser windows have the option of specifying which chrome features appear on the window (menu bars, toolbars, the status bar, etc.) and what window functionality is present (whether it’s resizable, whether it has scrollbars, etc.).

Oftentimes these parameters make a popup window less useful, or even obfuscate the popup’s contents and origin. This preference allows you to ignore the part of window.open() calls that tries to hide the Location Bar.

Possible values and their effects

True

Ignore "location=no" in the window features argument of window.open() and prevent popups from hiding the Location Bar. (Default)

False

Allow popups to hide the Location Bar.

Caveats

  • Setting this value to false may make website spoofing attempts more effective. For this reason, this preference defaults to true.

First checked in

2002-06-04 by Christopher Aillon

Has an effect in

  • Mozilla Suite (all versions since 1.1 alpha)
  • Mozilla Phoenix (all versions)
  • Mozilla Firebird (all versions)
  • Mozilla Firefox (all versions)
  • SeaMonkey (all versions)

Related bugs

Related preferences