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. Link to comment https://forums.phpfreaks.com/topic/15839-scrollbars-auto/ 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 Link to comment https://forums.phpfreaks.com/topic/15839-scrollbars-auto/#findComment-65115 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. Link to comment https://forums.phpfreaks.com/topic/15839-scrollbars-auto/#findComment-65229 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. Link to comment https://forums.phpfreaks.com/topic/15839-scrollbars-auto/#findComment-65236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.