How to redirect on previous page using java script

Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 1947
This link will redirect u to previous page.

<a href="javascript:history.go(-1);">Go To Previous Page</a>
<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="javascript:history.go(-1);">
Go To Previous Page</asp:LinkButton>

Comments or Responses

Posted by: Srilu.Nayini577 on: 8/14/2012 Level:Starter | Status: [Member] | Points: 10
I tried the above code,But for me i doesn't works.

Thank you,

Login to post response