scrollIntoView -------------------------------------------------------------------------------- Description Causes the object to scroll into view, aligning it at either the top or bottom of the window. Syntax object.scrollIntoView([start]) Parameter Description start Optional. Boolean value specifying whether to place the object at the top of the window or at the bottom. If TRUE, the method causes the object to scrolls so that its top is visible at the top of the window. If FALSE, the bottom of the object is visible at the bottom of the window. If no value is given, the object scrolls to the top by default. Return Value No return value. Remarks The following example causes the element to scroll into view within the window, placing it at either the top or bottom of the window. The method is useful for immediately showing the user the result of some action without requiring the user to manually scroll through the document to find the result. This example underlines the content of the fifth paragraph and scrolls it into view at the top of the window. var coll = document.all.tags("P"); if (coll.length>=5) { coll(4).style.textDecoration = "underline"; coll(4).scrollIntoView(true); } Depending on the size of the given object and the current window, this method might not be able to put the item at the very top or very bottom, but will always position the object as close to the requested position as possible. Applies To A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, WBR, XMP, TextRange -------------------------------------------------------------------------------- scrollBy -------------------------------------------------------------------------------- Description Causes the window to scroll relative to the current scrolled position by the specified x and y pixel offsets. Syntax object.scrollBy(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Remarks Positive values of x/y scroll further right/down; negative values scroll further left/up. Setting the scroll position beyond the limits results in the extreme valid scroll position in the direction specified. Applies To window -------------------------------------------------------------------------------- scroll -------------------------------------------------------------------------------- Description Causes the window to scroll to the specified x and y offset at the upper-left corner of the window. The preferred method for this is scrollTo; the scroll method is provided for backward compatibility only. Syntax object.scroll(x, y) Parameter Description x (Long) Horizontal position, in pixels. y (Long) Vertical offset, in pixels. Return Value No return value. Applies To window -------------------------------------------------------------------------------- scrollTo -------------------------------------------------------------------------------- Description Scrolls the window to the specified x and y offsets at the upper-left corner of the window. Syntax object.scrollTo(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Applies To window -------------------------------------------------------------------------------- moveBy -------------------------------------------------------------------------------- Description Moves the screen position of the window by the specified x and y offsets relative to its current position. Syntax object.moveBy(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Applies To window -------------------------------------------------------------------------------- moveTo -------------------------------------------------------------------------------- Description Moves the screen position of the upper-left corner of the window to the specified x and y pixel position. Syntax object.moveTo(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Applies To window -------------------------------------------------------------------------------- resizeBy -------------------------------------------------------------------------------- Description Changes the size of the window outside dimensions by the specified x and y offset relative to its current size. Syntax object.resizeBy(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Applies To window -------------------------------------------------------------------------------- resizeTo -------------------------------------------------------------------------------- Description Sets the size of the window outside dimensions to the specified x and y pixel sizes. Syntax object.resizeTo(x, y) Parameter Description x (Long) Horizontal scroll offset, in pixels. y (Long) Vertical scroll offset, in pixels. Return Value No return value. Applies To window --------------------------------------------------------------------------------