johnnyk Posted July 27, 2006 Share Posted July 27, 2006 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. Quote Link to comment Share on other sites More sharing options...
bltesar Posted July 28, 2006 Share Posted July 28, 2006 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 scrollbarsomitting the 'scrollbars' is equivalent to scrollbars=false Quote Link to comment Share on other sites More sharing options...
johnnyk Posted July 28, 2006 Author Share Posted July 28, 2006 What about scrollbars = yes?I saw some tutorial use that so that's what I always use. Quote Link to comment Share on other sites More sharing options...
bltesar Posted July 28, 2006 Share Posted July 28, 2006 yes and no also work as values for these boolean attributes. 'auto' is not, however, a valid value. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.