CodeIgniter Forums
Load page and scroll down automatically - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Load page and scroll down automatically (/showthread.php?tid=47669)



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?