[CLOSED] How to "disable" the browser Back button?

  1. #1

    [CLOSED] How to "disable" the browser Back button?

    Hi,

    This question has probably been asked many times. What's the best approach to force the user to stay on the same page? I've seen multiple hacks to "disable" the Back button within and without this forum. Reviewed the use of History control and WindowUnload listener at http://forums.ext.net/showthread.php...ED-Back-button. Neither seems to do the trick.
    Please suggest a workaround.
    Last edited by Daniil; Sep 24, 2012 at 7:12 AM. Reason: [CLOSED]
  2. #2
    Hi,

    WindowUnload leads the "Leave Page?" dialog to be appeared in IE9 and FireFox, but not in Chrome. At the moment, I didn't know why.

    Regarding the History control. I did the update in the thread that you mentioned.
    http://forums.ext.net/showthread.php...ll=1#post91212
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    WindowUnload leads the "Leave Page?" dialog to be appeared in IE9 and FireFox, but not in Chrome. At the moment, I didn't know why.

    Regarding the History control. I did the update in the thread that you mentioned.
    http://forums.ext.net/showthread.php...ll=1#post91212
    Hi Daniil,

    When JS redirect is made to the page with the "blocked" Back button, the IE9 browser displays an empty window. The markup is present from the page source but nothing shows up. #empty is added to the URL in the address bar. In other words, if the page is being redirected to, it doesn't work.
  4. #4
    Interesting. Generally, it is an interesting requirement. Thank you for the question.

    Needs some testing, investigating. So, it will take some time.
  5. #5
    Hi Daniil,

    The problem was in my code and your History based solution works well at least under IE9. While I will have to do more tests to check its cross browser compatibility, you can mark this thread as closed. Thanks again.
  6. #6
    Good, thank you for the update.

Similar Threads

  1. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  2. Replies: 3
    Last Post: Mar 22, 2012, 7:46 AM
  3. Replies: 6
    Last Post: Jan 08, 2012, 4:06 AM
  4. Replies: 12
    Last Post: Apr 13, 2011, 3:28 PM
  5. Replies: 1
    Last Post: Dec 06, 2010, 4:29 PM

Tags for this Thread

Posting Permissions