Click to See Complete Forum and Search --> : Sorry guys, i have an typo, please help me with the back function
mystical_ryan
08-21-2005, 02:25 AM
Please help me, i need to know this urgently. Is there a way to stop people from clicking the back button by disabling the back button in the browser or is there any means to not let them go the previous page. i need this because what i am developing is a transaction site.
i need this urgently for my school project, Thank you.
BigMoosie
08-21-2005, 02:41 AM
That kind of security should be handled server side, but if you must, after your important page direct them to another empty page that has this:
setTimeout('window.location.href="page3.htm"',1);
Then from page3.htm whenever they try to click back they get pushed back to page3, they can still bypass this by clicking the little arrow next to the back button.
felgall
08-21-2005, 03:16 PM
That would be one of the fastest ways to get people to leave your site and never come back.
Ultimater
08-21-2005, 03:23 PM
True, but he needs if for a school project. I'd personally use sessions to make the previous page expire which BigMoosie hints.