How can i auto scroll to bottom of page with jquery becuase i am requesting xmlhttp to update content of page
To use you just need to press CTRL+ Left click of your mouse and drag the mouse a bit in the direction you want to scroll the page. For example, if you want to scroll up to the page automatically, click CTRL+ left click and slightly move your mouse upwards, the tool will start scrolling up the page.
scrollTo(0, document. body. scrollHeight);
The first one is with javascript: set the scrollTop property of the scrollable element (e.g. document. body. scrollTop = 1000; ). The second is setting the link to point to a specific id in the page e.g.
This will work in every case, no need to put a 'ridiculous' number in it:
$(document).scrollTop($(document).height());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With