U
usgog
I have a div close to the bottom of the HTML page, and it is not
displayed by default. I also have a link to toggle this div at the top
of the page. So after I click the link, the div will show up. But
because the position of div in low on the page, users have to scroll
down the page to see the div. Otherwise, it is not visible directly.
So I am wondering how can I set focus to div directly so after
clicking the link, the page will automatically scroll down to the div?
displayed by default. I also have a link to toggle this div at the top
of the page. So after I click the link, the div will show up. But
because the position of div in low on the page, users have to scroll
down the page to see the div. Otherwise, it is not visible directly.
So I am wondering how can I set focus to div directly so after
clicking the link, the page will automatically scroll down to the div?