Forum Moderators: phranque
Is it possible to dissable the user's back and forward navigation when browsing a page (Similar to dissabling the right-click). The reason I ask is that I'm developing a secure web application, and I want the user to be bound by my navigation. I know this would be a nasty thing to do, but it's neccessary to maintain security.
Steve.
I know this would be a nasty thing to do, but it's neccessary to maintain security.
yep, nasty thing to do :o) but i think you stating that will save a debate, lol.
1) you can set the page you don't want users going back to no cache and expire immediately:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
2) you can use javascript to redirect from page 2 to page 3 immediately. when a user tries to go back they will again be redirected immediately.
i'd test the options out thoroughly before release. btw, the browser's back button can't really be manually 'broken' and to alter forward, if it were possible, would be redundant.
hth