andros_k Posted December 4, 2008 Share Posted December 4, 2008 Hey guys, i'm looking for a way to disable the browser close (x) button... Quote Link to comment https://forums.phpfreaks.com/topic/135481-how-to-disable-browser-close-x-button/ Share on other sites More sharing options...
beansandsausages Posted December 4, 2008 Share Posted December 4, 2008 why would you do that? your forcing them to stay on your site ... ? Quote Link to comment https://forums.phpfreaks.com/topic/135481-how-to-disable-browser-close-x-button/#findComment-705801 Share on other sites More sharing options...
andros_k Posted December 4, 2008 Author Share Posted December 4, 2008 i have a form that sends values to a new popup window with two buttons.Cancel and Ok.I want the user to click ok if he is ok with the specific values or to click cancel and go back and continue with the original page. I don't want the close (x) button because with that button all the values are gone! Quote Link to comment https://forums.phpfreaks.com/topic/135481-how-to-disable-browser-close-x-button/#findComment-705810 Share on other sites More sharing options...
RichardRotterdam Posted December 4, 2008 Share Posted December 4, 2008 you can't do that and I am glad that is impossible think of all the annoying stuff people would do with that ability. And even if there was a way there is always alt+f4. You will have to find another solution to your problem. What could help is use a modal instead of a popup Quote Link to comment https://forums.phpfreaks.com/topic/135481-how-to-disable-browser-close-x-button/#findComment-705865 Share on other sites More sharing options...
Mchl Posted December 4, 2008 Share Posted December 4, 2008 What's next? How to disable computer's power switch? Usa javascript's confirmation box. Quote Link to comment https://forums.phpfreaks.com/topic/135481-how-to-disable-browser-close-x-button/#findComment-705892 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.