JavaScript Programmer’s Reference BODY.scroll (Property) (Affordable web design) A switch for
JavaScript Programmer’s Reference BODY.scroll (Property) A switch for whether the scrollbars appear or not. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: String primitive JavaScript syntax: IE myBODY.scroll 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. Warnings: . 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