Browser Back Button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Browser Back Button

Post by Live24x7 »

In my workflow, when a user clicks aform button, i display an alert using javascript .
When he clicks OK on the alert, i want to execute the browser back button action automatically.
How do i achieve this ? :roll:


Sorry, if this does not pertain to php
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Browser Back Button

Post by social_experiment »

What about using history.back() for this; when the button is clicked you call the function; Not sure how though
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: Browser Back Button

Post by Live24x7 »

thanks social_experiment - will explore this and if it works out, will share it here.
Post Reply