disable "back" button on browser

Answered
0
0

Hi,

I’ using a main page and different forms to display (on mobile devices, maximized). I have “Close” button on them to close form and return to mainpage. BUT, if I press the browser “Back” button, it exit the application (because it has just one page).

I there any way to disable (or intercept and overwrite) the browser back button?

  • You must to post comments
Best Answer
1
0

You can’t disable the browser buttons but you can use use deep linking to handle the back/forward navigation.

https://github.com/iceteagroup/wisej-examples/tree/2.2/DeepLinking

Basically when you set the hash string in becomes a “page” in the navigation history without navigating and when the user presses the browser’s navigation buttons you get the  Application.HashChanged event. This is a common technique for SPA apps.

  • Adrian Zagar
    Wow, that was fast! Works perfectly, thank you.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.