Click here to Skip to main content
15,886,049 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After user have logged in if they press the back button of internet browser, then they will back to login page. But if they again press forward button of internet explorer should not get back to the page which traversed before by them.
Posted

Hi Dear,

please try following code with value 1 and -1

XML
<script language="javascript" type="text/javascript">
    window.history.forward(1);
</script>
 
Share this answer
 
You need to handle your page design. It's not suggestible to play with browsers button, still in case needed, have a look at following tip to know what you need to do: Browser back button issue after logout[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900