Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Inactivating Back button

 
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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not possible.
 
Marshal
Posts: 67388
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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
Marshal
Posts: 67388
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
Ranch Hand
Posts: 3850
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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.
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic