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);
You already invited:

Maurice - developer

Upvotes from:

You mean if you scroll to the bottom and reload ?

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);
});```

If you wanna answer this question please Login or Register