Auto scroll to a DIV on page
You can set your page focus to a DIV on the basis of id element.
Let's say you have an element...
<div id="my_div" > Scroll here.... </div>
Always Use: document.getElementById('my_div').scrollIntoView();
Let's say you have an element...
<div id="my_div" > Scroll here.... </div>
Always Use: document.getElementById('my_div').scrollIntoView();
Comments
Post a Comment