when i reload the page my page start from bottom but I want it from beginning. I already use $(body).scrollTop(0);
Hi everyone. I have a query please help me.
when i reload the page my page start from bottom but I want it from beginning.
I already use $(body).scrollTop(0);
when i reload the page my page start from bottom but I want it from beginning.
I already use $(body).scrollTop(0);
No any search results
You already invited:
1 Answers
Maurice - developer
Upvotes from:
The default is to stay where you are
but for forcing it
I assume your
```$('body').scrollTop(0);```
has body as a string, and is inside of a
```$( document ).ready()```
? (edited)
ex:
```$(document).ready(function() {
$('body').scrollTop(0);
});```