Back button |
[eluser]marcoslavorato[/eluser]
Hi CI programmers. I have a new question. How can I detect how is the older page visites by user? I need to catch this address to link with back button. Is is possible? Thanks.
[eluser]jcopling[/eluser]
You can access this information by using PHP like this: Code: $_SERVER['HTTP_REFERER']; Code: document.referrer; That is of course assuming that you need the most recent history item.
[eluser]louis w[/eluser]
of you could use Code: <a href="#BACK">Back</a> if you wanted to directly emulate the browser's back button. Sorry for the jacked up code, the forum kept stripping my javascript out.
[eluser]Colin Williams[/eluser]
The Whence Lib looks nice: http://ellislab.com/forums/viewthread/86394/ |
Welcome Guest, Not a member yet? Register Sign In |