1 Reply Latest reply on May 20, 2008 11:15 AM by atta707

    Disable back button in browser and X in top right

    nrutter Level 1
      Has anyone ever seen code out there for disabling the back button or the close button? I don't want the user to be able to leave the flex app without saving. That means anything that would navigate them away from the page. Including back button, close button, click home. Any ideas?

      -NR
        • 1. Re: Disable back button in browser and X in top right
          atta707 Level 2
          No. You cannot disable these buttons!

          There are ways that you can use Javascript to identify these user actions -- like gmail does for an example -- and present user an option to save the data. But again this is an option user may choose to ignore. So technically speaking, "I don't wantn the user to be able to leave flex app..." is not such a practical goal to have, IMO.

          ATTA