Click here to Skip to main content
16,012,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear One,

if i clicking browser back button page not loading or refreshing at the same time. and not going to back or previous page. How????
still view current page only.
And I use master page so how i use...

give me solutions?
Posted
Comments
arya1685 4-Nov-11 5:09am    
Hi,

You are not posting your source code, then how anyone can solve your problem..

Try to post your source code.
BobJanova 4-Nov-11 5:10am    
Repost

http://www.codeproject.com/Questions/277419/how-to-dissable-back-button-in-Browser-while-runni

1 solution

Write this code and call this preventBack() method in body tag

JavaScript
<script type = "text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>
 
Share this answer
 
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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