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

Similar Messages

  • 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>
    <%
    %>

  • 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

  • SRM5.0 Catalog Std. Call Structure - Disable Browser Back Button

    Hi colleagues,
    we're on SRM5.0 and have the catalog configured as "Standard Call Structure", i.e. it is displayed in a new browser window.
    Is there away to disable the browser back navigation functionality, i.e. open the window without address bar and back navigation buttons?
    There doesn't seem to be anything in SPRO in order to control this.
    Thanks, Ulli

    Hi
    I think it is a settings of browser
    for eg
    internet explorer -> view -> tool bars -> standard tool bar (activate / inactivate )
    so you can not see backe button.
    br
    muthu

  • Disabling Browser back button

    Hi,
    Is it possible to disable browser's back button from Applet?

    There might be some way to clear the browser's history so there's nowhere to go back to. Or set the current document as the "previous" document. Or open up a new window without a toolbar, or without a history....etc
    In most cases though, it's a pretty nasty thing to do. Let the users control their own computers, and just have your software do its job.

  • Browser Back Button

    Could someone please explain to me why users cannot use the browser back button with SP 2013? What is the purpose of preventing its use?
    Also, if there is no legitimate technical reason to disable this capability, how do I stop SP 2013 from redirecting the user to the current page when they try to use the browser back button?

    What page? On some you're being bounced from a link to a re-direction so when you hit back you just hit the redirect again and end up in the same place...
    There are other times the back behaviour might be interfered with as ajax controls weren't anticipated as part of basic HTML and browser construction.

  • How to disable browser back in adf or task flow

    require: page1 can turn to page2 ,but don't let page2 turn to page1
    can we disable the browser back button by js?
    help...

    Hi OX,
    Have a look into this Re: Any way to disable browser back button?
    Regards,
    Suganth.G

  • 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

  • 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.

  • How to Disable Browser Back & Forward Button ?

    Hi All,
    How can I disable Browser Back & Forward button in ADF Faces ?
    If Not, I remember reading somewhere that we can call a page with NO Browser button and Menu using Java script, how can I code this java script within ADF Faces ?
    Thank you,
    xtanto

    You might want to double check this solution in your application. Don't think that when the user presses the back button it simply doesn't go anywhere. It does go back to the previous page and the Javascript causes that page to go forward to the page that was just left. You can see this by putting some "alerts" in your pages.
    These actions my have consequences in your application.

  • Browser back button not maintain selections on previous page?

    Hi every one
    1. The following is my code for a home page.
    <h:form>
        <h:selectManyCheckbox value="#{home.value}">
             <f:selectItems  value="#{brandItems}"/>                  
        </h:selectManyCheckbox>
        <h:commandButton action="#{home.display}" value="Submit" />
        <s:link value="view newxt page" action="#{temp.getAll}" view="/table.xhtml" />
    </h:form>2. This is my session bean code
    @Stateful
    @Name("home")
    public class TempAction  implements Temp,Serializable
         private static final long serialVersionUID = 1L;
         String []value;
        @Out(required=false)
        List<SelectItem> brandItems;
         @Begin(join=true)
         public void getAll() {
              brandItems=new ArrayList<SelectItem>();
              brandItems.add(new SelectItem("First","First"));
              brandItems.add(new SelectItem("Second","Second"));
         public String[] getValue() {
              return value;
         public void setValue(String[] value) {
              this.value = value;
         public void display() {
              for(String a:value)
                   System.out.println("________________"+a);
        @End
        public void reset() {}
        @Destroy
        @Remove
        public void destroy() {}
    }3. I invoke getAll method by using following code in my pages.xml
    After visiting the second page by clicking the s:link , I go back to the first page by using browser BACK button . Then when I hit the SUBMIT button, I get the following error message in my jboss console and also the check boxs are deselected.
    16:29:05,843 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
    sourceId=j_id16:j_id17[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]Kindly assist to resolve this problem. Many thanks in anticipation.
    By
    Thiagu.m

    Did you ever find a solution? I'm having this issue also.

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

  • When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • 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!

Maybe you are looking for