Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, October 26, 2010 5:44 AM
If you need to clear the Browser History, after arriving on a particular page (e.g. arriving to Login page after Logout), below is the wicked way.
This script needs to put in only on one page, from where you do not want to move back. Here in example - Login Page.
<script type="text/javascript">
window.onload = function () { Clear(); }
function Clear() {
var Backlen=history.length;
if (Backlen > 0) history.go(-Backlen);
}
</script>
Second, if you do not want the user to move to the back page, you can do as below. This script needs to be repeated at every page.
<script type="text/javascript">
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
Hope this helps.
Regards,
All replies (1)
Tuesday, October 26, 2010 7:29 AM
Hi,
thank you for psoting such type of information.