Browser "Back" button - can it be disabled or detected when pushed?

Is there any way to disable the back button in the browser or
detect when it is pushed and redirect the application to a different page
rather than moving back to the previous page?
Specifically for IE6 & IE7.
Edited by: burferd on Jun 25, 2008 11:01 AM

burferd wrote:
My search found a suggestion to include the following code in the <head> block of the page,
but it does not appear to work, the back button is still enabled.This doesn't disable the back button, but this eliminates the default behaviour of the back button. Normally it loads the previously visited page from the browser cache (which might contain session data or expired data, which could lead to bad user experience), but if you disabled the cache, then it fires a new request to the server side to show the page so that the user is presented with new and accurate data.

Similar Messages

  • Disable Browser back Button in OA page

    Hi Experts,
    Can anyone tell me how to disable browser back button in OA page.. Any advice would be appreciable.
    Thanks in advance,
    Sandip

    Hi Reetesh,
    Thanks for your reply but this code gives the following Error:
    non-static method getRootWebBean() cannot be referenced from a static context
    When I tried and kept the following code it solved error but did not work.
    OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
    String javaS = "javascript:window.history.forward(1);";
    bodyBean.setOnLoad(javaS);
    Thanks and Regards,
    Sandip

  • Disable Browser Back Button

    Hi All
    I'm developing a web app using jdeveloper 11.1.1.4.
    In my web appication I want to Disable the browser Back button,
    Is there way to do this,
    Thanks
    Padma

    Hi,
    no, there is no option for this. You can try JavaScript as explained here: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
    See: "Disable Back functionality using history.forward"
    Frank

  • How to disable browser back button in Oracle ADF

    I need to disable browser back button in an ADF web application.
    The back button is not disabled but if I click it after visiting main page (e.g. from the page after main to the main page) it returns to the second page. I would to diasble the back button at all. Is it possible? If you know something specifically for ADF application (also without using javascript) the answer is welcome.

    see frank's reply in the post:
    Disable Browser Back Button
    hope this helps :)

  • How to disable  browser back button after session logout..

    Hi;
    I want to restrict the user to use the back button after session expired or logout. By doing the session expired we are restricting the user to do any new work but I want to restrict the user to see the back pages that he surfed previously in the session.
    Is there any method to disable the browser back button after the session Expired?
    please help me to find out the solution..
    Thanks in advance.
    With Regards,
    Haramohan

    One possible way is automatic return to the current page by writing the following Javascript code to the previous page:
    <script language=JavaScript>
    function backButtonOverride(){
    setTimeout("backButtonOverrideBody()", 1);
    function backButtonOverrideBody(){
    try {
    history.forward();
    } catch (e) {}
    setTimeout("backButtonOverrideBody()", 100);
    </script>
    <%
    catch(Exception e){
    %>
    <jsp:forward page="front.jsp"></jsp:forward>
    <%
    %>

  • The browser back button is not working correctly when using the search funtion in ProBoards forums. Is there a known issue with ProBoards & FF?

    I have submitted a bug report to ProBoards, but they cannot duplicate the problem I am having, so I am submitting this here in hopes you can find a solution.
    At ProBoards Support and another PB forum while doing searches I found this problem, which continues with repeated testing over the past week or so:
    url: http://support.proboards.com/search
    1. enter perameters for the search (posts only by staff for the last 2 days)
    2. choose one of those post results & click on it (choose a post on page 14 and not on page 1 of the results)
    3. using the browser back button, attempt to return to the previous page of search results
    4. rather than being taken back to the search results with my parameters, the search parameters have been removed and the page show 1000 results of posts by everybody.
    I have tested this over and over again, disabling plugins, and nothing seems to alter the malfunctioning of the back button when I am doing this search function at ProBoards.
    I have tested it in Internet Explorer and find that in IE the browser back button works properly with ProBoards searches. I always get the result I expect, so it's a problem with how FF interfaces with ProBoards, I think.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

  • Open previously viewed Tabbed Panel when using browser back button

    I have a page containing SPRY tabbed panels, and was wondering if there was a way that if a user navigates back to this page using the browser back button, the last panel viewed could remain open. Using hash tags in the URL works for Mozilla but not for IE8. Here is the sample page: http://www.davidkneale.com/wcusa/expedition_leader.html
    Does anyone know how I can get this to work in IE8?

    Perhaps you missed the announcement that Adobe is no longer investing in the development of Spry. See: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l.
    There used to be a dedicated Spry forum, but it has been changed to read-only.
    Spry isn't exactly dead, but nor is it in the best of health. Add to that the fact that IE 8 doesn't support the HTML5 history management API, and the lack of replies isn't really surprising.

  • 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 :-)

  • Employee lock when push browser back button

    Hello All.
    I have the following problem. I have installed the ESS in EP 620 sp2. When i was change some data from personal data iview and i push browser back button the system don´t remove the employee lock and i can´t access to my employee data.
    thanks in advance
    Raul

    use the following lines in your web.xml to avoid this bug of the current jsf-ri version.
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>I already tried to report this bug some time ago:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=478928&tstart=180&trange=15

  • Log out browser back button

    I have a simple question - just wondering if there is an explanation or a fix.
    Why is it that when I log out of a secure zone, if I hit the browser back button I am able to see the last-viewed secure page? Of course, once I click on a link it redirects to the log in, but it seems like that page shouldn't be viewable in the first place.
    For me, it's not really a big deal - but it would be a shame for someone to log out of a secure page that displays sensitive data, only to have that page readily available via the back button.

    This is the nature of the web. Once you click back in the browser, the browser doesn't make the GET request to the server to render the page.
    You can overcome that with some JS - http://www.webdeveloper.com/forum/showthread.php?137518-How-to-refresh-page-after-clicking -quot-Back-quot-button. See the 02-07-2007 11:35 AM post.
    -m

  • Browser "back" button won't work when linked from Catalyst graphic

    I am using Flash Catalyst in (CS5 Design Premium) because I am much more a print than web designer so bear with me.
    I created a .swf file in FC, and placed it at the top of a "router index" page. I linked 10 "buttons" in the .swf, each to a different anchor on the "router index" page. Clicking on each "button" jumps to the correct anchor, so far so good.
    The problem is, when I hit the browser "BACK BUTTON" in IE only (Safari and Firefox work fine), it does not jump back to the top of the "router index" page. It jumps back to a previously opened page (homepage or another page), instead of back to the FC .swf graphic on the "router index".
    FC apparently only allows linking to "absolute" URL's, not "relative" URL's, (so my links to the anchors are "absolute"). I don't know if this is the source of the problem with IE. I have always linked to anchors previously in Dreamweaver using "relative" URL's, and have never encountered this problem.
    I looked over the files that FC creates and cannot find one that I understand, or shows an editable file path that I can change.
    I hope i don't have to buy Flash Builder. Right now I have Design Premium. And... I don't understand Actionscript.

    Hi azaral
    Take a look at Project > Quiz Manager... > Quiz
    Settings tab. My guess is that you have DE-selected the "Allow
    backward movement" check box.
    Cheers... Rick

  • Browser back button does not work (IE) - Error On Page message

    Just take over website from our designer; I'm new, probably doing more fiddling on the live remote website than I should be...
    http://www.cmcwny.org
    Error On Page message, internal links work, but the browser Back button does not (at least in IE). 
    I have a backup of my local site from before this happened, but I do not know how to actually replace it.
    Any help on either issue will be appreciated, thanks!
    Larry Congdon
    Buffalo, NY, USA

    Hi
    First, get rid of your designer, the page design/code is a mess.
    There are a number of problems with the page, not least being the disabling of the back button in all browsers I tested it in, (visitors may visit once with this, but are unlikely to do so a 2nd time).
    The menu system is a fixed size so that when the browser is resized it overflows the browser window.
    The use of tables for layout is not recommended as it is inaccessible to users using assistive devices.
    To put this more politely, if you paid for this, ask for your money back. If you did not pay, then start again and use one of the dreamweaver layouts for your page, for more info, see - http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html.
    PZ

  • Incorporating the BROWSER back button in flash

    I have seen a new layout in Flash, where the browser's back
    button can be used to hit different pages that have been visited
    INSIDE the flash clip. So for ex, you go to a URL and its a full
    browser flash site, then click "news" and go to the news page. If
    you click back on the BROWSER, it takes you back to the main page
    of the flash site, not the last URL visited in the browser. Here is
    a good example:
    http://www.opcd.net/#/lomo_-_mr._wig/
    going back in the browser will take you to other visted image
    pages. Can somebody point me in the right direction to figure out
    how to incorporate this in my layouts?
    Pat

    Have a look at this article:
    http://www.adobe.com/devnet/flash/articles/deep_linking.html.
    It will probably answer your question.

  • Ctrl+F5 and Browser Back Button

    I have read many posts about these issues, but did not reach to any result.
    I realize that they are a kind of validation, but how can we work around them?
    I have tried to set "EnableTokenValidation" property in the page definition to false, but this causes more problems, since instead of "Creation/Insert" mode, the page appears to be in an "Update" mode.
    It came upon my mind to hide browser's tool bars, but I am not sure for this...
    So, please, does anyone have reached a solution, or even any recommendations?
    Thanx in advance

    Hi,
    you are tackling two issues here:
    1 - page refresh
    2 - browser back button
    Both are typical JavaEE issues
    1 - If you submitted a page then a refresh will not bring it back into createInsert mode. If you want it to get back into CreateInsert mode, set an invokeAction on the executableSection of the binding to invoke CreateInsert on any page request
    2 - The recommended way of doing this - described as a pattern in J2EE - is a dejavu token that allows you to detect duplicate requests. The best solution I saw working though is a piece of JavaScript that on the client side deleted the browser history. This way the browser back button became non-functional
    Frank

Maybe you are looking for

  • Get higher resolutions for extended desktop

    We have a new iMac. We also have an older Apple Cinema HD display monitor that we're using with the iMac as an extended desktop. On the iMac, we're using 2560 x 1440 resolution; but the highest resolution we can get on the Cinema HD is only 1280 x 80

  • I backedup up my 3GS and restored it on 4S and now Siri is not anywhere to be found?

    I got the iPhone 4S on October 14 and have used it this past week.  I love it!  But I have some really important SMS messages on my 3GS that I really want to keep.  The guy at AT&T told me to make sure the old phone is how I want it on the new phone

  • Deleted or Modified Rows in datablock

    Hello guys, I have a window and i would like when the window is closing, to check if any line of my datablock has been deleted or modified. How can i implement this? ANY IDEA?

  • Problem in writing to XML

    hi all, when i add a node to an existing xml file and write to disk, it writes <device name="POS1-888887"/><device name="POS2-888887"/><device name="POS3-888887"/> My questions is: 1. How do i make it write in single line <device name="POS1-888887"/>

  • Creator 1 Updates/Patches

    For those of us who have made a commitment to Creator and are currently tied to Creator 1, when can we expect the next set of patches/updates for Creator 1.