Turning ON/OFF "Are you sure you want to leave this page?"

What property controls showing (or not showing) “Are you sure you want to leave this page?” I’d like to let the user close a window without tripping this dialog, and in other cases it’s nice to have. How can I toggle this on/off?

And, setting this line in the Opening event of Session doesn’t seem to do anything…

Self.ConfirmDisconnectMessage = "I'm going to disconnect!"

…thanks!

We did a little research about how this feature has evolved over the last few years in terms of how the browsers themselves behave. It turns out that the browsers all behave a little differently from one another and it looks like the feature may be deprecated as well, but whether it’s actually removes is completely up to the browser makers themselves. That said, Firefox and Chrome don’t actually let you modify the message and one of them (can’t remember off the top of my head) even gives the user a checkbox that says they don’t need the message going forward.

All that said, feel free to file a bug report with a simple example of what you are doing and we’ll look into it.

1 Like