• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inactivating Back button

 
Pandurangan Rakesh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a requirement where i need the Browser back button to be inactive when the user clicks(i.e) it should not respond..and the user should stay at the same window..since i have a back button in my screen....
Thanks in advance for replies
Regds
Rakesh
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not possible.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a recording...

You cannot and should not attempt to take over the user's computer. This includes the browser controls. You are given the browser window to work in so just keep your mitts off everything else.

If you don't want the browser controls confusing your user since you will have navigation in your own window, do what many other sites do and open a new window without the toolbars upon application launch.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
If you don't want the browser controls confusing your user since you will have navigation in your own window, do what many other sites do and open a new window without the toolbars upon application launch.


This is another recording:

I can still right-click (windows and linux) and click Back from the context menu, so just stick with the first part of Bear's recording.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is merit to opening apps in a new window. Users, especially non-savvy ones, can get confused when the browser sports one set of controls, and the web app another. Opening the app in a non-toolbared window can alleviate some of that confusion.

But with regards to trying to prevent users from boofing up your application with back and refresh... yeah, you just have to buckle down and deal with it. Learn the coding techniques to deal with the issues introduced by back and refresh rather than trying to exert control over parts of the browser that you have no business futzing around with.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
This is not possible.


But if we see gmail then Back button doesn't seem to work at single click (double click works). :roll:
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ankur rathi:


But if we see gmail then Back button doesn't seem to work at single click (double click works). :roll:


This is not GMail disabling the Back Button. This is GMail handling the back button, which is what we are trying to tell you to do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic