Jump to content

how to disable browser close (x) button


andros_k

Recommended Posts

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!

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.