| Author |
how to disable back button
|
challa
Greenhorn
Joined: Mar 28, 2005
Posts: 23
|
|
Hi, Can anyone please tell me how to disable back button in the browser. When the user clicks back button he should get the same page. Please help me how to do this.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You can not disable the back button. Eric
|
 |
challa
Greenhorn
Joined: Mar 28, 2005
Posts: 23
|
|
Eric, Can you please tell me, using java script how to load the same page when the user clicks the back button.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You can not control what the back button does. I wrote this awhile back, but it is not the best solution: http://www10.brinkster.com/A1ien51/basics/backbutton.htm Eric
|
 |
Namnai Kidorkar
Greenhorn
Joined: Jul 02, 2005
Posts: 25
|
|
conceptually this might be done, never tried... send back and forth a flag, and make the flag true when it comes to the page where u want to be. then, in the back page make a function such that if the flag is true it will be forwarded to the next page. if will not disable the back button for sure but what will happen is that it will go back to the old page and come back autometically.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: how to disable back button
|
|
|