IE Browser back button goes to two pages back

I am not using JSPs, using a servlet ABSServlet to display the search page, after entering the search criteris I'm displaying a report page. The report page has a button 'Save As Excel' which open the report in the Excel form. When I click on this button browser asks 'Open' or 'Save'. I clicked on 'Open'. It open the report in excel form in the same page. Now if I press the IE Browser back button it takes me to the Search page instead of the report page.
Ideally it should go back to the Report page(preiosu page) if I click the back button and not to the previous to previous page. Can someone help?

You cannot (practically) modify the function of the browser's back button...
You can patch it though.
Put in the intermediate (search) page something like
<script language="Javascript"><!--
function sendBack()
  wherefrom=history.forward(1); //only valid if the back button has been used. otherwise null
  length=wherefrom.length();//length of 'forward page's url'
  if (history.forward(1).substring(length-4)==".xls") //the back button has been press on a url ending .xls - back from a spreadsheet
    location.href=history.back(1); //go back once more from here
  else
    //this is if the back button was not used or if back button was used from a page that is not an excel spreadsheet;
    //if you write nothing here, the page just display as though this function were not here
//--></script>
<body onload="sendback()">Not really a Java solution, but should work.
Bamkin :-)

Similar Messages

  • How to set a back button to the caller page

    Hello,
    An application have a page that can be called by several other pages, for instance, an "addContact.faces" can be called by several other forms, when the user adds the contact or press a back button, the application should go back to the caller page.
    How can I implent this?
    Thanks in advance,
    Juan

    As an alternative, you could Ajax the stuff and put it in a popup div, which is a common technique nowadays. Then the user doesn't even navigate away from the page he/she was on, plus it is relatively easy to implement in a generic way so multiple pages can use it.
    Search for "css popup div" on google if you want to see this in action.

  • I purchased a year of adobe cc today. when the screen came up to tell me it was processing my payment, not to hit the "back" button or refresh the page as it could take a few minutes. That was 7 hours ago. The help chat told me it would take 24 hours to p

    i purchased a year of adobe cc today. The screen came up to tell me it was processing my payment, not to hit the "back" button or refresh the page as it could take a few minutes. That was 7 hours ago. I contacted the help chat department and was told it would take 24 hours to process. Is this normal?? Why would the screen tell me "a few minutes" if it's actually 24 hours? Has anyone else had this problem? I am so tempted to just refresh the page and try my luck with my credit card canceling a second payment should it happen. THAT might be faster.

    Hi stephanie palmer,
    We would like to inform you that your order has been placed successfuly and you can strart using the subscription.
    Kindly follow the below mentioned link to install products.
    Creative Cloud Help | Download, install, update, or uninstall apps
    Kindly share the results once done.
    Thanks,
    Atul Saini

  • Disable/hide navigation Back button in particular overview page

    Hi All,
    I have to disable/hide navigational 'Back' button on Task overview page. I tried to achive this in WD_HISTORY mehtod but no luck.
    Please suggest me how to do this.
    Thanks,
    Nanaji

    Hi Laxmana,
    I did the same thing as you suggested, by commenting the super class method we can just stop to go to previous page but not all the pages which are stored in back button history.
    My actual requirement is, back button should not be visible to user or should not function anything. User should not use back button to navigate away. user must use 'save and back' or 'save' buttons.
    Thanks,
    Nanaji

  • The back button goes back two pages instead of one

    The back button takes me back multiple pages, especially on Facebook

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • The back button goes back 2 pages, when choosing a bookmark the item under it (on the desktop) is selected

    After upgrading to 3.6.11 The back button sometimes goes back 2 pages, The Bookmarks window just flashes when trying to open it, when it does stays open if an item is selected that item is not opened, the item beneath it on say, my home page is opened. I saw there were some Google related problems in your trouble shooting section, I got rid of the Google stuff but the problem remains.

    Your above posted system details show multiple Java Console extensions.<br />
    You can uninstall (remove) the Java Console extensions, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />

  • Back Button - Why does it go back a FRAME (framed pages) instead a PAGE ?

    In a "framed" site, the Back button causes the display going back one frame, following back goes back another frame, 3 framed page needs 3 backs to finally beeing back on previous page. Why ? Error in page setup or in handling of FF?
    Rgds Jordi

    This is clearly a heavy bug in FF4, and now also continued in FF5.
    The typical "main" window on the right side, within a frameset, is not going back when using the Back function, when this window is targeted from any JavaScript in the menu in the window on the left (or top) side.
    If a "main" window is targeted instead by plain HTML, or out of an Applet, the back function in FF4 and FF5 behave correctly.
    This bug can be verified by querying anything from a site like
    http://www2.rgzm.de/navis2/home/FramesE.cfm
    All websites using JavaScript based frameworks this way won't work correctly anymore in FF4 and FF5.
    Thus, when the menu in a left frame is JavaScript driven, FF4 and FF5 don't now about its history anymore. This worked in FF3 and it is perfectly working in all other browsers. This serious bug will force users of any JavaScript based menu in a website to switch to one of these other browsers.
    Its not clear to me whether the JavaScript engine does something wrong, or whether FF4 and FF5 itself are not keeping track correctly. What is clear, however, that this basci functionality was broken somewhere between FF3 and FF4.
    Albert

  • Safari back button goes back to Top Sites rather than search results

    When I launch Safari, it begins at the Top Sites page.  I use the unified search/URL bar to search something on Google.  I click on one of the results and decide that's not the answer I wanted so I hit the back arrow in Safari to go back to the search results, but Safari doesn't do that.  It skips the search I did and goes all the way back to Top Sites.  The Google search never happened as far as Safari is concerned.  What's going on?
    Details:
    Safari 6.0.4
    Mac OS X 10.8.3

    Do any search, either in the URL bar or by going to www.google.com (doesn't matter what you search for as the results are irrelevant). Once you're at the search results page, you'll see a cog wheel icon on the upper right. Looks like this:
    This is the search settings button. Click it and navigate down to "Search Settings". Once at this page, look halfway down to find the "Google Instant Predictions" section. Change the option to "Never show Instant Results." Scroll all the way down and save your changes.
    I'm betting with you... I think its the Focus on the User extension. Good luck.

  • Why does the foward and back button no longer show page history ?

    the older version of mozilla/firefox you had the option of seeing previous pages beside the foward and back buttons. rather than going back to each page. also the web pages that were suggested for your search let you know if the web page or site good or bad.

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • Limited history available with "go back" button -- maybe 30-40 pages, then must go to initial page and start over again. Can I take page limit off of Go Back button?

    When using "firstview.com" and scrolling through pictures, I wish to return to my initial viewing page. I use the "go back" button and am able to return 30 or so pages, and then it does not allow further "go back." Can I increase or eliminate the limit on the capacity to go back using the go back button?
    == This happened ==
    Every time Firefox opened
    == n/a

    You can try to increase the pref '''browser.sessionhistory.max_entries''' on the about:config page.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • How to display the first page alone first and two pages (back and front) then ?

    Hi
    I use acrobat 9 (beginner).
    I have a document which should be displayed "as a book", ie two pages on the screen at the same time, the back of the first sheet and the front of the second one.
    The problem I have is to manage to display the cover sheet as a single page (alone) and then to have the dual page layout as described above.
    How could I do that ?
    Thanks for your help
    Regards
    Fanch

    Hi Bernd
    Thanks a lot.

  • Randomized Quiz Questions in CP7: Back button goes forward

    I've checked my on enter and on exit fields. Not sure why, but my randomized quiz questions' back buttons go forward. Very odd. Is there a setting I should check?
    It is worth noting that the back button is clearly not the forward button... checked in properties.
    Also, I need the student to be able to reanswer this question until they get it right, at which time the question stays answered.

    Yes sir. Thanks for the reply, Rod. I was hoping you were on =)
    I buy pretty much all of your stuff... went through the whole troubleshooting guide.
    Just noticed that "Branch Aware" is on, and it is a linear lesson. Going to try turning that off.

  • Facetime does not log in.  Goes back and forth between two pages

    Created an entirely new Apple ID and password.  On WiFi and good speed.  Not a tech noobie.  When I open Facetime, enter username and pass, select "Sign in"  it will go to the "next" page, and display, "People will call you using your email address....., and displays the email address, with a "next" button at the top.  That page will then quickly disappear, and will go back to the original sign in page.  Nothing happens.  I have tried everything, turning Facetime on and off, resetting the iPad, etc.  Seems that lots of other folks are having problems with this app  too.  Do I need to reinstall IOS 5.0.1?  Please help.  Thanks.

    OK, it's now working.  I followed each and every step in the troubleshooting area, including making sure date and time are set properly (they were), and turning on "Set Automatically" (it wasn't), then restarting the device.  Here are the steps.
    If you encounter issues making or receiving FaceTime calls, try the following:
    Verify that FaceTime is enabled in Settings > FaceTime.
    If the issue persists or if you see the message "Waiting for Activation", try toggling FaceTime off and then on.
    If you don't see the FaceTime setting, ensure that Camera and FaceTime are not disabled in Settings > General > Restrictions.
    Verify that the date and time are set correctly:
    Tap Settings > General > Date & Time.
    Toggle Set Automatically on.
    Verify that both parties are connected to a Wi-Fi network and have an active Internet connection.You cannot make or receive FaceTime calls using a Cellular Data network connection.
    FaceTime uses push notifications to send and receive invitations. Verify push functionality using Mail or other applications that use this feature.
    Restart the device.

  • Does not retain information on pages in NNEREN MLS, "back" button goes to a message saying Mozilla does not retain information. Makes MLS almost unusable.

    We realtors use MLS constantly. In our community the address is www.nnerenmls.com I can search for properties, but as soon as I select one to gather more information, and then go back to the search results, I get a message saying that Mozilla does not save information, which means that I have to run the search criteria all over again. Sometimes I have to do this a dozen times just for one project. Not acceptable. This is a recent problem, and it means that I have to use a different software for MLS. Is there a way to tell mozilla that I want it to save the data it retrieves so that I can go back to the results after looking at the details? Thanks.

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    You may be in Private Browsing mode.
    Type '''about:preferences#privacy'''<enter> in the address bar.
    The button next to '''History,''' select '''Use Custom Settings'''.
    Turn off '''Always use private browsing mode'''

  • Browser menu button quit, wont load pages

    after cleaning history n cookies hoping to speed up my Q10, the browser will open but right menu button wont pop up and the left button for history and other browser windows wont pop up either. Did a back up and restored and still doesnt work. only can get it to open and particially works through links in old texts or bbms and then left button will work again. How do i fix this, need access to the browser daily for work!

    I am having the EXACT same problem. At first I thought my network had slowed down, and I was ready to switch to Cable from DSL to speed things up, but then I noticed that when I bring my work portable home and work on the same network, I don't have any problem--although it uses the same network. It's a Dell portable that uses Windows and I get the same speeeds I have gotten until recently on my Apple computers. I switched to Apple and bought a new computer for my daughter last year and one for myself this year to avoid the security problems with Windows XP, but now my service is so slow that even dial-up would be speedier and half of the time the page loads don't work at all. WHat's up with this? I tried Firefox, but it's really not much better after the first day.

Maybe you are looking for