Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My code are as follows...
its not working can any one help me....

XML
<script language="javascript" type="text/javascript">

        function getback() {
            window.history.go(-1);
            return false;
        }

</script>




<asp:Button ID="Button1" runat="server" OnClientClick="return getback();" Text="Button" />
Posted
Comments
Nalini Kanta Nanda 18-Apr-14 7:59am    
Browser forward and backward means?Do u want to forward and backword moving a list value by clicking any button or u need something else?
It is perfectly working.

1 solution

From the code that you have given, it should work, no problem. Make sure there is history to go back to in the same browser windows (same tab).
Read more: Manipulating_the_browser_history[^]
 
Share this answer
 
Comments
Member 10310320 19-Apr-14 0:53am    
My code id working but after few sec its again redirecting on same page automatically....

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