Back
Basically, scrollTo is not attached to the window element. You can use the below command:
var el = document.getElementById('c_base');el.scrollTop = 300;
var el = document.getElementById('c_base');
el.scrollTop = 300;
I hope this will help.
Want to become a Java expert? Join Java Training now!!
31k questions
32.8k answers
501 comments
693 users