Jump to content


Photo

scrollbars = auto?


  • Please log in to reply
3 replies to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 27 July 2006 - 10:22 PM

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.
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 bltesar

bltesar
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 28 July 2006 - 12:13 PM

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


#3 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 28 July 2006 - 04:14 PM

What about scrollbars = yes?
I saw some tutorial use that so that's what I always use.
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#4 bltesar

bltesar
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 28 July 2006 - 04:38 PM

yes and no also work as values for these boolean attributes.  'auto' is not, however, a valid value.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users