Jump to content

Archived

This topic is now archived and is closed to further replies.

johnnyk

scrollbars = auto?

Recommended Posts

For window.open(), is it possible to set scroolbars so that they'll appear only when they're needed?
I tried scrollbars=auto, but it didn't work.

Share this post


Link to post
Share on other sites
The window.open method takes the following arguments ("URL", "windowName" [,"windowFeatures"][,replaceFlag])

The scrollbar option is a boolean field, so you can put (in the 'windowFeatures' part)

      scrollbars=true, scrollbars=1, or just scrollbars

omitting the 'scrollbars' is equivalent to scrollbars=false

Share this post


Link to post
Share on other sites
What about scrollbars = yes?
I saw some tutorial use that so that's what I always use.

Share this post


Link to post
Share on other sites
yes and no also work as values for these boolean attributes.  'auto' is not, however, a valid value.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.