| Author: Deepika Haridas 01 Jan 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
<"javascript:location.replace('<Page.html>')"> Check this code.
im not sure whether we can clear browser history, but we can avoid back button functionality by the above code
Thanks & Regards, Deepika Editor
If U want to shine like a SUN..First U have to burn like the SUN!! Need a Guide? Join my mentor program..
|
| Author: Gaurav Agrawal 01 Jan 2009 | Member Level: Diamond | Rating:  Points: 4 |
use this code
By using java script it can be done <script language="JavaScript">javascript:window.history.forward(1);</script> Or <A HREF="PageName.htm" onclick="javascript:location.replace(this.href); event.returnValue=false; ">No back button when you do this.</A> Or <html><head><title>Back Button Demo: Page One</title> <script> function backButtonOverride() { setTimeout("backButtonOverrideBody()", 1); } function backButtonOverrideBody() { try { history.forward(); } catch (e) { } setTimeout("backButtonOverrideBody()", 500); } </script></head><body onLoad="backButtonOverride()"> <h1>Back Button Demo: Page One</h1><a href="page2.html">Advance to Page Two</a> </body></html>
GA
Thanks & Regards,
Gaurav Agrawal Sr.Software Engineer gaur1982@yahoo.com 09829373514
|
| Author: divya 01 Jan 2009 | Member Level: Gold | Rating:  Points: 3 |
Try this write down following code in Logout button.
protected void LogOut() { Session.Abandon(); string nextpage = "Logoutt.aspx"; Response.Write("<script language=javascript>");
Response.Write("{"); Response.Write(" var Backlen=history.length;");
Response.Write(" history.go(-Backlen);"); Response.Write(" window.location.href='" + nextpage + "'; ");
Response.Write("}"); Response.Write("</script>");
}
|
| Author: Rahul P R 01 Jan 2009 | Member Level: Bronze | Rating:  Points: 2 |
I have tried all the above methods. But again history is not cleared. I am using windows authentication methods. I don't know what is the problem with this.
|