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 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. BODY.tabIndex (Property) An integer that represents the position of this document in the tabbing order. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: Number primitive JavaScript syntax: -myBODY.tabIndex This value indicates where in the tabbing sequence this object and any of its children will be placed. The tabbing order is used when filling in forms. Pressing the [tab] key moves from one form element to the next according to the cascaded tabbing order defined by building a tree-like structure with the tab index values.

Leave a Reply