[thelist] 'scrollbars=auto' not working as expected

.jeff jeff at members.evolt.org
Thu Mar 7 13:31:00 CST 2002


bill,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Bill Haenel
>
> So then, the only option for scrollbars is 'yes'?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

or "no".  or "1" (syntactically the same as "yes").  or "0" (syntactically
the same as "no").  there are other options of course -- ones that i prefer
over these.

the inclusion of an attribute implies it should be included in the list of
things that are turned on unless you implicitly set it to "no" or "0".  the
exclusion of an attribute implies that it should be off.  so, to make the
third argument of the window.open() method, i choose to use a
comma-delimited list of attributes i wish to have enabled, leaving off
entirely the yes/no/0/1 values.

so, for a window that's resizable, 300 pixels tall, and 200 pixels wide, i'd
use the following:

window.open(url, target, 'resizable,height=300,width=200');

if i wanted it to have scrollbars, i'd simply add the "scrollbars" attribute
to the list:

window.open(url, target, 'resizable,scrollbars,height=300,width=200');

all other attributes are off, by their exclusion.  that means the window
won't have an address bar, status bar, menubar, etc.

make sense?

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list