'How to fix scroll button to always go up to next section
I'm having a hard time with a button and hope you can help me. The button - Next - is on the first page of subscription page, when clicked it goes to the register page but is keeping the scroll down - showing the footer and not the begining of the form. I tried to use offset, criating another div, add a new function, scrollTo, and nothing seems to work. Any tips are welcome! tks
Solution 1:[1]
There's something odd in your sequence of pages but to surely address your problem, on your registration page (that loads scrolled down), run this once the document is ready:
window.scrollTo(0,0);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Diego De Vita |
