If this property contains "yes", then scrollbars will appear if the window content exceeds the size of the space available. If it is "no", then the scroll bars will not appear.
Although this is a switch, it is not strictly a Boolean value because it only takes the values "yes" and "no". A true Boolean value would accept only "true" or "false". This may be because the property might yield the value "auto" on some platform variants if it has been defined in the HTML tag attributes for a frame.
Although the BODY object is not supported on Netscape Navigator, the HTML tag attribute properties that control scrollbar visibility are the same on both MSIE and Netscape Navigator.
You should note, however, that the content of a page in Netscape Navigator cannot be scrolled unless the scrollbars are visible. Even if the content does not exceed the space available, the scroll bars will still be drawn but will be inactive. To scroll content in Netscape Navigator without scrollbars being visible, you will need to create a <LAYER> and scroll that.
This leads to a further complication in that the vertical scroll value moves the content in the opposite direction in MSIE and Netscape Navigator as it is incremented.
Prev | Home | Next |
BODY.rightMargin | Up | BODY.tabIndex |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |