Hi, Can anybody please tell me if there is a way to find that a user clicked on the back button of the browser?
Thanks
not in php.
well no but you can make sure he won't want to by having your page expire 🙂 If he clicks the back button he'll get a "Expired Du'h!" page
How would you detect a user has pressed the browser back button. I understand this is detected only in Javascript, would anyone be able to forward me the code, I have searched just about everywhere and have not found any answers.
you can make your page go back in history but I've never seen Javascript code detect that the page is an old one that came after a back...
Post some code or examples of why you need to know why the user is pressing the back button, maybe that would make it easier to help...