• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

window.scroll()

JavaScript1.1, JScript3.0 Nav3, IE3, Opera3 Syntax

							window.scroll(numX, numY)

Description

The scroll() method of the Window object scrolls the specified window to the specified location passed to the method. As shown in the syntax definition, the first numeric value passed to the method represents the x-coordinate to which you want to scroll the window, while the second numeric value represents the y-coordinate. Note that this method has been deprecated in JavaScript 1.2 and replaced with the scrollBy() and scrollTo() methods.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint