how to Auto Scroll the page



how to Auto Scroll the page..

Answer / Nisha Srivastava

You can use the `window.scrollTo()` method in JavaScript to scroll the page horizontally or vertically. Here's an example:n```javascriptn// Scroll to the top of the page:nwindow.scrollTo(0, 0);n// Scroll 100 pixels down:nwindow.scrollBy(0, 100);```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Code Interview Questions

determine which Element received an Event

1 Answers  


how to pass data between pages using Cookies

1 Answers  


how to create a Draggable element

1 Answers   TCS,


how to pass data between pages using Frames

1 Answers  


how to delay a function call ?

1 Answers  


maximizing the main window

1 Answers  


code to get the coordinates of a Click Event

1 Answers  


write a program to detect the user's browser ?

1 Answers   Infosys,


program to bring a window to the front

1 Answers  


code to calculate the number of days between two dates

2 Answers  


code to set the main window's size

1 Answers  


how to Scroll a DIV content

1 Answers   SoftSquare,


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)