Return to the page?
4 answers
PHP is server side, so no. The page will be delivered to the client and when it reaches the client, the browser will need to go back.
You have two options. Javascript or HTML meta tags.
An example javascript mootools would be something like this:
window.addEvent('domready', function() {
history.go(-1);
});
You can also post it in HTML meta tags
<meta http-equiv="refresh" content="2;url=http://example.net">
Hope this helps! Be aware that this behavior tends to be confusing to the user and should be used with caution.
+4
source to share
Yes, use history.go(-1)
in Javascript.
For bonus points, make sure there is actually a page to return to before invoking it, such as this question suggests .
+4
source to share