This is a migrated thread and some comments may be shown as answers.
Back Button Disable
2 Answers 38 Views
This is a migrated thread and some comments may be shown as answers.
Jayakrishnan
Top achievements
Rank 1
Jayakrishnan asked on 12 Apr 2012, 08:25 AM
Can you please inform me how can i disable back button. My problem is that when i logout and redirects to start page i can go back to home page by clicking back button.... Is there any way to overcome this?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 12 Apr 2012, 10:09 AM
Hi Jayakrishnan,

It is not possible to disable the back button of a browser. One suggestion is that you can add the following javascript which prevents redirecting to previous page while clicking the back button of the browser.

JS:
<script type="text/javascript">
    window.history.forward();
</script>

Hope this helps,

Regards,
Princy.
0
Arun
Top achievements
Rank 1
answered on 28 Jul 2015, 09:50 AM

Hi Princy,

Can i know how your wesite(Telerik), after log out redirect to log in page, when i am click back navigation or backspace key in log in page shows same page. How?, Can you please explain clearly?

 Regards,

Arun

Asked by
Jayakrishnan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Arun
Top achievements
Rank 1
Share this question
or