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? Link to comment https://forums.phpfreaks.com/topic/88979-no-refresh/ 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. Link to comment https://forums.phpfreaks.com/topic/88979-no-refresh/#findComment-455671 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 Link to comment https://forums.phpfreaks.com/topic/88979-no-refresh/#findComment-455676 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. Link to comment https://forums.phpfreaks.com/topic/88979-no-refresh/#findComment-455677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.