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
14
votes
1 answer

How to detect is that back button OR forward button clicked by javascript?

Just to ensure, I am NOT asking how to catch back/forward button events. window.addEventListener('popstate', function (e) { alert("Yahoooo!!!!"); }); That function above is triggered either it is…
curiousBoy
  • 6,334
  • 5
  • 48
  • 56
14
votes
2 answers

Why is a call to finish() causing onCreate() to be called, starting a new Activity?

(Yes, I've already looked at existing questions related to this problem.) I am calling finish() from my Activity's Up button listener. But although onDestroy() does get around to being called, first onPause() is called and then, surprisingly,…
Alyoshak
  • 2,696
  • 10
  • 43
  • 70
14
votes
8 answers

How to find whether the user clicks browser back button or Refresh button

I need to find whether the user clicking the browser back button or Refresh button. I need to redirect the page to Error page when he clicks the back or refresh button. How to do this. I need to do this in javascript for my ASP.net page
balaweblog
  • 14,982
  • 28
  • 73
  • 95
14
votes
2 answers

Javascript backbutton event listener overrides the android device back button

I have created Android app using cordova 2.6.0. I have implemented a menu feature in my app using html markups and jQuery which toggles on interacting with device's menubutton. But I could not figure out to achieve the following requirement, to…
Lekhnath
  • 4,532
  • 6
  • 36
  • 62
14
votes
1 answer

iOS 7 Back Button Arrow Vertical Alignment

On iOS 7, is there any way to change the back button arrow's vertical alignment? I can only change the vertical alignment of the title and nothing in UIBarButtonItem's appearance suggest that the arrow vertical alignment can be changed. See the…
Aaron Wojnowski
  • 6,352
  • 5
  • 29
  • 46
14
votes
2 answers

Why are HTML forms sometimes cleared when clicking on the browser back button

I am sure everybody knows that behaviour. You fill in a form on the web, and you submit it. After the submission you recognize that you filled in some wrong data. So, you click on the browsers back button. Then, sometimes the form still have the…
Gerwald
  • 1,549
  • 2
  • 18
  • 42
13
votes
5 answers

IOS 5 How to change the color of back button in a navigation bar?

I want to change the color of back button of a navigation bar to make it look like this
Nilesh Tupe
  • 7,655
  • 5
  • 25
  • 30
13
votes
5 answers

Notification opens activity, back button pressed, main activity is opened?

The best way I can describe my problem is like this: A notification is created at boot (with a BroadcastReceiver). My app main activity is opened and the home button is pressed (the app is still running in the background until the system closes…
13
votes
7 answers

how to disable back button in android

i am making swap application... i want to disable back button. so i use this code... and passed intent in to it.. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount()…
Sam
  • 355
  • 2
  • 4
  • 13
13
votes
1 answer

Disable navigationitem backbarbutton

How do I disable the backbutton in a navigationcontroller? When I hide the button like so, self.navigationItem.hidesBackButton = TRUE; the buttonarea is still tappable.
Glenn
  • 1,085
  • 1
  • 9
  • 13
13
votes
6 answers

Android Back Button to specific activity

When I click the back button Android goes to the previous activity. Is it possible to set for every activity a custom (back) activity or to set the back button to the home menue of the app? Help or hints would be great :)
Chad White
  • 309
  • 1
  • 4
  • 15
13
votes
3 answers

HTML5 History API: JSON displayed when going "back" to another page, and then "forward" again

I have a page where there are several search / filter button which, when clicked, refresh the contents of a list below through AJAX. In the process, I'm modifying history (through pushstate) so that the new filtered page is bookmarkable, and so the…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
13
votes
3 answers

Auto start file download after form submission

I have a web form that users complete online. When they press submit it will start a file download for them. At the moment, I process the form submission and generate a suitable file for the user and fire it off with suitable headers.…
Rik Heywood
  • 13,816
  • 9
  • 61
  • 81
12
votes
2 answers

browser back + viewscope beans

What the problem is : What happens when clicking on the browser back button --> opens up a page whose viewscoped-managedbean is already destroyed --> submit a request from a commandButton from that page with grid-record-selections ? What i expect…
Bertie
  • 17,277
  • 45
  • 129
  • 182
12
votes
2 answers

How to add Back Button without using AppBar in Flutter?

I wanted to add a back button on my appBar and wanted to make the appBar transparent so that it shows only the back button.
Simran Aswani
  • 1,236
  • 3
  • 19
  • 42