[thelist] new window scroll bars

Bruce Heerssen bruce at heerssen.com
Fri Nov 23 17:31:57 CST 2001


On Friday 23 November 2001 07:39, Tommy Martin wrote:
> Hi All,
>
> Do any of the JS gurus out there happen to know if there's a way to
> spawn a new window that has a vertical scroll bar but NOT a
> horizontal one?
>

Not really, you can't specify that there should be a veritical scroll bar but 
/not/ a horizontal one. What you can do is use the 'auto' setting:

onClick="MM_openBrWindow('foo.html','foowin','toolbar=no,location=no,status=yes,menubar=no,scrollbars=auto,resizable=yes,width=300,height=500')"

By using the auto setting, the browser can determine whether or not there 
should be a horizontal scroll bar. Just make sure the pop-up has enough room 
horizontally and you should be set.

-- 
Bruce Heerssen
Web Developer
http://members.evolt.org/bheerssen/




More information about the thelist mailing list