Questions tagged [back]

Method or control to return user to previous state, page or screen.

Refers to questions about preventing, detecting, handling, controlling, etc:

  1. The back button on web browsers
    • History of visited sites
    • Backing out of a "dirty" page
  2. The hardware or software back button on smartphones and other similar devices
  3. Navigation in Android/IOS applications
    • Returning to the previous view
    • Exiting the application (Android)

et cetera.

Does not refer to

  • Keyboard backspace key (^H)
  • Keyboard delete key (^?)
  • Reverse side of a physical device
  • Previous versions of an application
1484 questions
39
votes
1 answer

Keyboard shortcut to navigate Back Forward in Notepad++

In Eclipse, we can use Alt + Left to navigate Back, and Alt + Right to navigate Forward. Is this shortcut available in Notepad++? If no, can it be installed using plugins?
Trivikram
  • 801
  • 1
  • 9
  • 17
37
votes
5 answers

How do I kill an Activity when the Back button is pressed?

I got an Activity that when it starts, it loads an image from the internet. In an effort to save memory, when the Activity is left by the back button being pressed, I want the activity to dump all data, that is get rid of all the strings and images…
Shaun
  • 5,483
  • 10
  • 40
  • 49
35
votes
9 answers

Android Back Button and Progress Dialog

I have an AsyncTask that shows a progressDialog whilst working (it calls runOnUiThread from within doInBackground to show the progress dialog). Whilst its running I want to allow the use of the back button to cancel the operation; someone else has…
jwbensley
  • 10,534
  • 19
  • 75
  • 93
33
votes
7 answers

jQuery UI Tabs back button history

Has anyone been able to get jQuery UI Tabs 3(Latest version) working with the back button? I mean if the user hits the back button they should go to the previously visited tab on the page, not a different page. The history plug in sounds like it can…
CesarHerrera
  • 483
  • 2
  • 7
  • 13
31
votes
5 answers

Android back button and MediaController

I know how to take control of the back button. I have a VideoView embedded in a FrameLayout. My question is when the video pops up, the video controls are present for a few seconds. Hitting the back button while they are visible hides the video…
Ronnie
  • 11,138
  • 21
  • 78
  • 140
31
votes
10 answers

how to go back to previous fragment on pressing manually back button of individual fragment?

I have only one activity and multiple fragments in my application. Two main fragment A(left) and B(right). Fragment A1 called from A B1 called from B B2 called from B1 All fragments have individual back buttons. So when I press back button of…
Mihir Shah
  • 1,799
  • 3
  • 29
  • 49
29
votes
4 answers

back button in browser not working properly after using pushState (in Chrome)

I am using this type of line in an JS response if (history && history.pushState){ history.pushState(null, null, '<%=j home_path %>'); } but when I click back in the browser, I see the JS code of the response instead of the previous page. Is…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
27
votes
4 answers

What is the ID of the back arrow drawable in the ActionBar?

The following code causes a back arrow to appear in the ActionBar: getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true); I'm looking for the resource ID of the arrow drawable, i.e.…
hmuss
  • 301
  • 1
  • 3
  • 5
25
votes
2 answers

Add to browser history without page reload

Basically, I have a page that contains a form. When a user submits that form, a Javscript function is called and the user is dynamically presented with a new form. At this point, what I would like is for the user to be able to click the browser's…
twiz
  • 9,041
  • 8
  • 52
  • 84
24
votes
2 answers

Android: How can I detect if the Back button will exit the app (i.e. this is the last activity left on the stack)?

I'd like to warn the user if the back press is going to finish the last activity on the stack, thereby exiting the app. I'd like to pop up a little toast and detect a 2nd back press within the next few seconds and only then call finish(). I already…
Artem Russakovskii
  • 21,516
  • 18
  • 92
  • 115
24
votes
1 answer

Angular: Location back history

I have a form with a "back" button. When the user presses the back button, the script goes to the previous page: import { Location } from '@angular/common'; // In a place in La Mancha, whose name I do not want to…
Cequiel
  • 3,505
  • 6
  • 27
  • 44
24
votes
10 answers

Prevent Form resubmission upon hitting back button

I have searched many posts here and elsewhere but can't seem to find a solution to my problem. I have a page which displays database entries: database.php. These entries can be filtered with a form. When I filter them and only display the ones I am…
user1889382
  • 381
  • 1
  • 2
  • 8
24
votes
2 answers

How to keep changed form content when leaving and going back to HTTPS page? (works with HTTP)

Enter/change something in a textarea Before submitting the form, leave the page (e.g. by clicking browser's back button) Go back to the edit page (e.g. by clicking the forward button) Expected result: the content entered in the textarea should…
unor
  • 92,415
  • 26
  • 211
  • 360
23
votes
3 answers

Remove page from history, so "back" will work properly

I have my app that you need to login to get in to the other pages. so the first page is "login" and it checks if you are already logged, if so you will be redirected to the main page app, if not it will show you the login page. now the problem is…
Tzook Bar Noy
  • 11,337
  • 14
  • 51
  • 82
22
votes
7 answers

Android onBackPressed() is not being called?

in my MainActivity, which extends from AppCompatActivity, I want to override the onBackPressed method like so: @Override public void onBackPressed() { Log.d("MainActivity","onBackPressed"); …
Steve2955
  • 639
  • 1
  • 5
  • 17
1
2
3
98 99