Closed
Bug 271066
Opened 20 years ago
Closed 20 years ago
No scrollbars in javascript window
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INVALID
People
(Reporter: relf, Unassigned)
Details
(Keywords: testcase)
Attachments
(4 files)
Mozilla linux build 2004111905
Open testcase and click on "click on me" link. A new window pop-ups but there
are no scrollbars.
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
It works when "scrollbars=yes" is specified in the window.open argument.
Updated•20 years ago
|
Component: Browser-General → DOM: Level 0
Comment 4•20 years ago
|
||
When the scrollbars argument in window.open is omitted, it seems that
windows.scrollbars.visible=false.
When scrollbars=yes, windows.scrollbars.visible becomes true.
So it seems like Mozilla has the scrollbars by default off, by purpose.
Comment 5•20 years ago
|
||
The window features that are not explicitly listed as enabled in the window
feature list are turned off (if there are features listed in the list at all; if
none are listed, the defaults are used).
I believe that's been the behavior all along and is the correct one...
| Reporter | ||
Comment 6•20 years ago
|
||
(In reply to comment #5)
> The window features that are not explicitly listed as enabled in the window
> feature list are turned off (if there are features listed in the list at all; if
> none are listed, the defaults are used).
>
> I believe that's been the behavior all along and is the correct one...
I think that there should be default for each separate feature, and if this
particular feature is not listed, its default must be used.
In particular, for scrollbar= the default should be "yes".
Comment 7•20 years ago
|
||
That would break compatibility with how this has worked all along and how it
works in other browsers. This behavior is hardly a secret, and is clearly
documented. See for example:
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html (the first
hit on "window.open features" on google).
("if you do specify any feature parameters, titlebar and hotkeys still default
to yes but all others are no.")
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
(the second hit on the same search string).
("When the sFeatures parameter is specified, the features that are not defined
in the parameter are disabled.")
Marking invalid, since this is in fact behaving as it should.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 8•20 years ago
|
||
Default for scrollbars= must be "yes".
See http://www.webreference.com/js/column7/attributes.html
"scrollbars=[yes|no|1|0]
Specifies whether to display horizontal and vertical scroll bars, when the
content exceeds the dimensions of the window. This feature is yes by default."
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 9•20 years ago
|
||
The defaults are used if no features are specified. If any features are
specified, all other ones are disabled. From the very page you quote:
"For compatibility reasons, you should always specify each feature explicity."
The reason is that IE, Netscape, and Mozilla all behave the same, documented,
way -- features not specified are disabled if other features are specified.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•