Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good evening to everyone,

any possible way to call Javascript function on Browser back button click event or disable Browser back button for entier site


thanks in advance
By
Meganathan M
Posted

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


Of course, if javascript is turned off in the client browser, the code above won't work. So, you'd probably have to check the referrer and redirect if necessary to the referring web page.
 
Share this answer
 
Comments
Wonde Tadesse 7-Mar-12 22:46pm    
5+
Monjurul Habib 8-Apr-12 12:18pm    
5!
I think you need this
Browser back button issue after logout[^]
 
Share this answer
 
Comments
Wonde Tadesse 7-Mar-12 22:46pm    
5+
Monjurul Habib 8-Apr-12 12:18pm    
5!

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