• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inactivating Back button

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not possible.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic