This is a migrated thread and some comments may be shown as answers.

Disable the back button and retain the current values

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rajasekar
Top achievements
Rank 1
Rajasekar asked on 22 Feb 2012, 11:34 AM

How to Disable the back button.Even i got some javascript from google i cant go back to the previous page but my current page is loaded freshly,my previous actions are gone.... How should i retain current values while disable the back button? Example if i select any values in dropdown....Its urgent Please

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Feb 2012, 03:23 PM
Hi Rajasekar,

You cannot disable the browser's back button. It is a part of the computer program, thus - from the cilent's machine, and JavaScript cannot access it for security reasons. How browsers handle the back command is up to them. The closest you can get to modifying this is by using the history JavaScript object, which is very limited. There are some hacks that somewhat disable the back functionality, yet I would not recommend them. Further information about it can is freely available in the net. A good starting point is this google search.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Rajasekar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or