View Single Post
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: How to disable Back button of IE when executing welcome.aspx page?

 
0
  #2
Nov 23rd, 2005
short answer is No. There is no direct way to disable the back button so that it is greyed-out and user cannot click on it. However, there are some tricks using javascript which might be able to give you the results you need,although they won't be as pretty. One I am currently working on involves using javascripts window.history function with a session variable and automatically logging off and redirecting to login page if user hits the back button. You can also do something as simple as:
  1. <script language="JavaScript">
  2. <!--
  3. javascript:window.history.forward(1);
  4. //-->
  5. </script>

Put that script at the top of every page. If user hits back button it will send them forward again.
Reply With Quote