How to prevent flickering on click of browser back button
Posted
by venlak
on Stack Overflow
See other posts from Stack Overflow
or by venlak
Published on 2010-04-12T11:37:41Z
Indexed on
2010/04/12
11:43 UTC
Read the original article
Hit count: 402
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;
}
© Stack Overflow or respective owner