How to prevent flickering on click of browser back button
- by venlak
Hi...I am working on Asp.Net application.I wrote the below JavaScript code to prevent the user to not going to login page on click of browser back button when he logs into the application.It is working fine for me,but from the homepage when i click on browser back button,the flickering appears due to post back.How to prevent the flickering.
Please provide the solution.
function preventBack()
{
window.history.forward();
}
setTimeout("preventBack()", 0);
window.onunload=function()
{
null;
}