|
|
Q450 How can I scroll the current page or a page in another frame?
irt.org | Knowledge Base | JavaScript | Scroll | Q450 [ previous next ] Q450 How can I scroll the current page or a page in another frame?In Netscape Navigator 3 you can use the window.scroll(x,y) method to do this. In Netscape Navigator 4 this has been deprecated and replaced with window.scrollTo() and window.scrollBy(): scrollBy(horizontal, vertical) To scroll another frame you need to go via the parent frame, e.g.:
which will scroll the frame frameName to 500 pixels from the top of the document. To see how to do this in a cross-browser fashion see: Instant JavaScript - Automated Scrolling. Feedback on 'Q450 How can I scroll the current page or a page in another frame?' |
-- div -->
|