Browser "Back" Botton - how to control
-
In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page
-
In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page
If you perform a search for this topic you will find many resources. Generally, you need to set a variable of some sort, perhaps a session variable, and check it in the page load and redirect if necessary.
I know the language. I've read a book. - _Madmatt
-
In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page
Using JavaScript you can go back or forward in the browser's navigation history. Most of the time you want to go back one page. For doing that, use the following code:
history.go(-1);