Scrolling to bottom of a Web page on loading

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

Scrolling to bottom of a Web page on loading

Post by adam »

Hi anyone,

I'm trying to figure out a visual basic built in function or code to have a web page automatically scroll to the bottom when the web page loads.

Note: I have a search bar at the bottom of the page and I want it to scroll to the bottom of the window every time the page is loaded.

Any help would be kindly appreciated.

Thanks in advance.
Best Regards,
Adam

User avatar
Leif
Administrator
Posts: 7193
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Scrolling to bottom of a Web page on loading

Post by Leif »

Would it not be easier to have the search bar at the top if the user is going to be forced to it in the first place?
Leif

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

Re: Scrolling to bottom of a Web page on loading

Post by adam »

Leif, what you have suggested is true. But the page has instructions at the top and the search bar at the bottom. and each time the page is refreshed or loaded it should be scrolled to the bottom.

I hope I have made my question clear.
Best Regards,
Adam

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

Re: Scrolling to bottom of a Web page on loading

Post by adam »

Thanks for the reply and suggestion I've changed my mind to place the search bar at the top which makes it easier to work without using complicated codes. :smile:
Best Regards,
Adam

User avatar
Leif
Administrator
Posts: 7193
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Scrolling to bottom of a Web page on loading

Post by Leif »

Good choice!
Leif

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

Re: Scrolling to bottom of a Web page on loading

Post by adam »

Thanks. It was all you who made the change.
Best Regards,
Adam