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
19
votes
8 answers

how to change backbutton color iOS7

I've been developed an app for iOS7 which has this design As you can see there's a blue arrow for all my BackButton (using UINavigationController and segues), I want to make them red, this is my code: [UIBarButtonItem …
Jesús Ayala
  • 2,743
  • 3
  • 32
  • 48
19
votes
6 answers

Back Button Handle A Dynamic Form

I have a form with an array of text fields. The user (through javascript) can add an arbitrary number of text fields to the form. After submitting the form and pressing the back button the form displays only with the fields that were on the…
Brian Fisher
  • 23,519
  • 15
  • 78
  • 82
18
votes
5 answers

Prevent the animation when clicking "Back" button in a navigation bar?

My application has a navigation controller and I don't want any animation in it : to prevent an animation when pushing a view, it's easy, via the pushViewController:animated: method but when I click the "back" button on this subview, there's an…
Mick F
  • 7,312
  • 6
  • 51
  • 98
18
votes
11 answers

iOS 8: UINavigationController hide back button

After I run my application in iOS 8 (XCode 6.0.1, iPhone 6), the back button does not hide. My code: - (void)removeCategoriesButton { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { …
ZhukV
  • 2,892
  • 6
  • 25
  • 36
18
votes
3 answers

JavaScript - bfcache/pageshow event - event.persisted always set to false?

In a standard Java / SpringMVC / JSP / jQuery web-app, I'm trying to detect a "Back" (or history.go(-1)) event, in order to refresh (AJAX) a summary component/panel content when I return to a page (where we can change the backend data that is…
Eoin
  • 241
  • 1
  • 3
  • 8
17
votes
5 answers

Phonegap - navigator.app.backHistory() not working on HTML back button

In my app i am using phonegap 2.6.For back button, I am using the following function document.addEventListener("backbutton", onBackKeyDown, false); function onBackKeyDown() { alert("hello"); …
Iam4fun
  • 1,438
  • 3
  • 14
  • 18
17
votes
1 answer

iOS - UIBarButtonItem - Back Button title vertical position not adjusting

I am setting a custom font in my UIBarButtonItem objects using UIAppearance. This works fine and sets the font correctly. However, I do need to adjust the button title's vertical position to cater for the sizing of the new font. [[UIBarButtonItem…
Brian Boyle
  • 2,849
  • 5
  • 27
  • 35
16
votes
4 answers

onKeyDown() or onBackPressed()

I want to implement the back button functionality in my application. In application whenever I'm clicking on back button in middle my control is going to login page directly, so can someone tell me where to override onKeyDown() or onBackPressed()…
user1249134
  • 165
  • 1
  • 1
  • 7
16
votes
2 answers

How to intercept back button in AppBar in flutter

I am using interceptor https://pub.dartlang.org/packages/back_button_interceptor to execute a method when the page 1 is back from page 2. If I come back from page 2 to page 1 using device back button, the method is executed. But if I come back from…
ningomba 2.0
  • 253
  • 1
  • 2
  • 11
16
votes
4 answers

Ionic 4 Angular Back Button to previous page instead of root?

I have a little Ionic 4 App with 2 Tabs and 1 Detail Page. The Problem I'm facing here is that if I go from Tab2 into Detail Page and from there with ion-back-button back it always redirect me to Tab1 instead of Tab2 where I was before. Here is my…
Lukas R.
  • 296
  • 1
  • 3
  • 19
16
votes
3 answers

Chrome doesn't cache hidden form field values for use in browser history

I have a ASP.Net web form that contains both text box fields and hidden fields. The hidden field values are modified dynamically using client side JavaScript. Posting the form, inspecting the values and redirecting to another page is all working as…
Andy McCluggage
  • 37,618
  • 18
  • 59
  • 69
16
votes
6 answers

How do I handle a back-button press in a (Delphi) Android app?

How can I make my Android app react to the back-button? Is there something as high-level VCL's TApplicationEvents to handle it, or do I need to dive deep into low-level Android-specific stuff here? Right now, most of the demo applications have an…
Wouter van Nifterick
  • 23,603
  • 7
  • 78
  • 122
15
votes
8 answers

Confirm back button on UINavigationController

I am using the storyboard for my app which is using UINavigationController. I would like to add a confirmation dialog to the default back button so the user does not log out accidentally. Is there some way to do this? I have found that I cannot…
mtmurdock
  • 12,756
  • 21
  • 65
  • 108
15
votes
12 answers

How to handle back button on Ionic 2

How can I handle the back button action on Ionic 2? I want to be able to know what to do depending on which page is being shown to the user. I didn't find a good answer to this question, but after a while I figured it out myself a way to do it. I'm…
Alexandre Justino
  • 1,716
  • 1
  • 19
  • 28
15
votes
4 answers

Hide Navigation Controller Back Button iOS 7

I have tried to hide the back button in my navigation controller by adding the following lines to my viewDidLoad method. Many other previous answers on SO have said this works, so I don't know what my problem is? Maybe something new with iOS 7 /…
Adam Johns
  • 35,397
  • 25
  • 123
  • 176