PokeTech Posted February 1, 2008 Share Posted February 1, 2008 I'm wondering if there's a javascript code for disabling refresh on a certain page? And if there is could you show me it? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 1, 2008 Share Posted February 1, 2008 You can not stop the browser from being refreshed, but you can redirect to the current page, if some condition is not meet. That is about the best you can do. Quote Link to comment Share on other sites More sharing options...
laffin Posted February 1, 2008 Share Posted February 1, 2008 u can always set a cookie with the page user is on like a tracking cookie. now at beginning of some scripts, that shudn be refreshed check the cookie against the script name, if they are the same, most likely a refresh. redirect user to other page just a thought Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 1, 2008 Share Posted February 1, 2008 u can always set a cookie with the page user is on like a tracking cookie. now at beginning of some scripts, that shudn be refreshed check the cookie against the script name, if they are the same, most likely a refresh. redirect user to other page just a thought You still cannot prevent a browser refresh with this method; there is no way to control that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.