406 Part III . Document Objects (Web server setup) Reference doScroll([ scrollAction ])

406 Part III . Document Objects Reference doScroll([ scrollAction ]) Returns: Nothing. Compatibility NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 . IE5.5 . Use the doScroll() method (not implemented in IE5/Mac) to simulate user action on the scrollbars inside a window or frame that holds the current document. This method comes in handy if you are creating your own scrollbars in place of the standard system scrollbars. Scrolling is instantaneous, however, rather than with animation even if the Display control panel is set for animated scrolling. The parameter for this method is one of the string constant values shown in Table 18-6. In practice, occasionally the longer scroll action names more closely simulate an actual click on the scrollbar component, whereas the shortcut versions may scroll at a slightly different increment. Table 18-6 document.body.doScroll() Parameters Long Parameter Short Parameter Scroll Action Simulates scrollbarDown down Clicking the down arrow. scrollbarHThumb n/a Clicking the horizontal scrollbar thumb (no scrolling action). scrollbarLeft left Clicking the left arrow. scrollbarPageDown pageDown Clicking the page down area or pressing PgDn (default). scrollbarPageLeft pageLeft Clicking the page left area. scrollbarPageRight pageRight Clicking the page right area. scrollbarPageUp pageUp Clicking the page up area or pressing PgUp. scrollbarVThumb n/a Clicking the vertical scrollbar thumb (no scrolling action). Unlike scrolling to a specific pixel location (by setting the BODY element s scrollTop and scrollLeftproperties), the doScroll() method depends entirely on the spatial relationship between the body content and the window or frame size. Also, the doScroll() method triggers the onScollevent handler for the BODY element object. Be aware that scripted modifications to body content can alter these spatial relationships. IE is prone to being sluggish in updating all of its internal dimensions after content has been altered. Should you attempt to invoke the doScroll() method after such a layout modification, the scroll may not be performed as document.body.doScroll()
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply