|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I'm thinking javascript is the way to do this.
I've got a login screen, members only area, and a function to logout. once a user logs out, it returns them to the login screen. if they left the browser like that and someone else came up to it, they could use the back button to go back to the login page where the first user filled out his login and password, then log in as the first user. is there a way to prevent the use of the back button or erase it's history?? is there a way to force the browser window to close? thanks for any help. ---John Holmes ---www.SepodatiCreations.com |
|
#2
|
|||
|
|||
|
Yes. You can use the location.replace() method. For example:
<form> <input type="button" value="Go" onClick="window.location.replace('nextpage.html');"> </form> The current pages history entry will be replaced with the nextpage.html and this will also load the nextpage.html. Spookster |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > How to prevent user from using back button?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|