adspace
Answer Posted / 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 View All Answers