Questions tagged [back-button]

A button that will take the user back to the previous state that they were on.

A back button, often depicted with leftward facing arrow icon, is a basic control that allows the user to return to a previous application state.

In web browsers, a historical record of each time a user navigates to a new page is kept. Clicking the browser's back button will return the user to the previous page in the history.


For example, if a user navigates first to google.com (1) then to facebook.com (2) then to youtube.com (3), their browsing history will include all the pages they visited at each site in the order they were viewed (1, 2, 3).

While on youtube.com (3), if the user clicks the back button, they will then be taken to facebook.com (2). If they click the back button again, they will be taken to google.com (1).

1630 questions
10
votes
7 answers

iOS >> UINavigation Item Back Button Title Doesn't Change

I'm trying to set the BACK button for a pushed VC set within a UINavigationController stack. I use the following code, and it's not working - I still get the previous VC name appearing as the back button title. -(void)viewWillAppear:(BOOL)animated…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
10
votes
5 answers

Android DroidGap disabling back button

Please, anyone suggest, how can I disable back button press event while working with PhoneGap? I need to do something in my Activity, (DroidGap code) for controlling the back button event. Even, the following code works well in my Activity, but not…
Narendra Singh
  • 3,990
  • 5
  • 37
  • 78
10
votes
6 answers

Prevent back button

I am using Razor on ASP.NET MVC with C#. I am calling an external web page to process a credit card and it returns to me. I then display a receipt. I'd like to prevent them from going back to the previous screen. I do not have an underlying cs…
ErocM
  • 4,505
  • 24
  • 94
  • 161
10
votes
2 answers

how to handle device back button on sencha touch application

In Sencha touch if I use navigation view i can get back button. This is pretty fine. But what if user hit device backbutton? it is direct exiting the applicaiton. In my requirement it should not exit the application it has to go back to previous…
atluriajith
  • 762
  • 3
  • 17
  • 41
10
votes
3 answers

How avoid returning to login layout pressing the back button/key?

I want create an app for my institute. The problem is: my application will have two layouts (login and dashboard). Students can correctly fill out the login form, enter the dashboard, press buttons, and fill other fields. But if the user then…
SoldierCorp
  • 7,610
  • 16
  • 60
  • 100
10
votes
6 answers

Override home and back button is case a boolean is true

I was wondering if I can override the action of the back and home button is some cases. Normally these buttons should just react like they always do, but in a case some setting is true I want to override the buttons and let them call my own…
Diego
  • 4,011
  • 10
  • 50
  • 76
9
votes
3 answers

Using onResume() to refresh activity

I can't for the life of me figure out how to have an activity be refreshed after pressing the back button. I currently have activity A that fires an intent to goto B and while on act B if you press back I want to go back to act A but have it refresh…
Nick
  • 9,285
  • 33
  • 104
  • 147
9
votes
7 answers

How do I make Firefox reload page when back button is pressed?

I have tried every combination and permutation of meta tags that are supposed to stop a page from being cached, but Firefox STILL caches the page! I just need the URL to reload when a user presses the back button. Works fine in IE8. I have tried…
ubiquibacon
  • 10,451
  • 28
  • 109
  • 179
9
votes
6 answers

Prevent form resubmit after pressing back button

I am in bit of a delicate situation here. In my organization we design stock management systems and it is a web application based on JSP pages and servlets which handles them. I have been asked to fix a specific problem. We have a JSP page with an…
Lucy Ferrier
  • 202
  • 1
  • 2
  • 11
9
votes
7 answers

How to detect when back button pressed in fragment android?

I have project with navigation drawer with fragment, with 5 menu, the problem is when i go to menu 4 and the i press the back button the app closed, but i need the app back to first menu which is all the menu in fragment. This is code for Main…
Josh Parinussa
  • 633
  • 2
  • 11
  • 28
9
votes
1 answer

iOS WatchKit - How to detect when back button is pressed on Watch?

I need to do some cleanup on 2nd view controller when the back button (arrow) is pressed on the Apple Watch. Is there any sort of method for detecting/handling when a back button is pressed / view is popped? Note - I can't use 'willDeactivate()'…
9
votes
4 answers

Detect if the user has used the back button

My webpage runs a javascript function when the page is loaded. However, I don't want the function to run if the user comes back to this page using the back button. How can I prevent this using javascript? $(document).ready(function(){ // Do not…
Tom
  • 1,047
  • 4
  • 15
  • 27
9
votes
5 answers

What's the best way to deal with cache and the browser back button?

What's the best way to handle a user going back to a page that had cached items in an asp.net app? Is there a good way to capture the back button (event?) and handle the cache that way?
TheEmirOfGroofunkistan
  • 5,476
  • 8
  • 37
  • 53
9
votes
5 answers

launch an activity using intent and disable back button press from launching the previous activity

In my application. I have a login screen. If the login is successful, a tab activity will launch, in that there are 4 tabs. When I press one of the buttons in the tab, a new activity will launch. there is an event in my login class that will get…
irfan
  • 869
  • 3
  • 12
  • 25
9
votes
3 answers

How can I show a custom image in navigation bar back button instead of default buttons which are shown by nav bar itself

On navigating to any view in an app which has navigation controller implemented, it shows a back button to go to the previous view. Is there a way I can use custom image instead of the default one?
AJ.
  • 1,443
  • 7
  • 19
  • 31