CodeIgniter Forums
Load page and scroll down automatically - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Load page and scroll down automatically (/thread-47669.html)



Load page and scroll down automatically - El Forum - 12-17-2011

[eluser]Perkin5[/eluser]
I want to load a page and have it scroll automatically to a pre-determined anchor point, say #myanchor.

At the moment, when I load the page the uri looks like:

http://localhost/sitename/controller/method

If I type #myanchor at the end of the uri and hit 'enter', the page scrolls down correctly but how can I specify that in the controller method?