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.

Similar Messages

  • How to disable browser back/forward buttons from JSF

    Hi,
    I am working on one JSF based project
    I have a requirement where I don't want the application users to go back/forward using browser back/forward buttons so I want to disable the browser's back/forward buttons for my application.
    Can anyone tell me how to do that?
    Thanks in advance.
    Regards,
    Vijay Kumar

    Hi,
    Thanks for your response on this.
    My problem is that I am opening the new popup windows using setOnLoad Handler in JSF like following:
    getTmpBody().setOnLoad("window.open(\"abc.jsp?grantId="+txtGrantId.getValue().toString() + "&sunId=" + empDetails_Global + "&tmplNm=" + aggrTmplName + "&ctryCode=" + ctryCode +"\", \"Agreement\",'width=800,height=600,scrollbars=yes');return false;");
    Now everytime I am going to any other tab or page, I am setting the setOnnLoad handler to blank like
    getTmpBody().setOnLoad("");
    Now the problem is when I open a popup window and close this and then click on browser back/forward buttons, the last opened popup window again come up. This is the problem since I don't want last opened popup window to get opened again on the click of a browser back/forward buttons.
    This is a very urgent issue and I need to resolve this asap.
    Please help me on this.
    Thanks,
    Vijay Kumar

  • Disable browser back/forward buttons for CRM 7

    In one of the books I've on the subject of the interaction center there was mention of an OSS note to disable the Browser Back/forward button. If you jump around Browser sessions it's common to suddenly jump into a SAP browser session, hit the back button, exit out and then realise the error that you've made.
    I've been searching for this note but have been unsuccessful in finding it so far.
    Does anyone know what this note is?.
    Jason

    They are all ticked in that box except DEFAULT, DEFAULT_CHM and DEFAULT_ICM. If I tick these and Save I receive the message saying 'DO NOT MAKE ANY CHANGES (SAP ENTRY). Now obviously I can just enter past this and create a transport, but is this the right thing to do?.
    In John Burton's book, called 'Maximize Your SAP CRM Interaction Center' there is an OSS note mentioned to resolve this issue, and was why I originally raised this post.
    However, If you suggestion works then I would be happy to try it.
    How does one know which technical profile is being used when log in, and therefore which one to change?.
    Jason

  • How can I add Internet browser back/forward buttons to the main toolbar?

    The developper of the software I'm testing manages to open
    web-pages in a window within our software. We find this a great
    feature, although it has one downside: no back/forward buttons the
    users have gotten used to thru standard Internet browsers.
    Is there any way to add these classic Internet browsing
    buttons to the main toolbar of a WebHelp output? I've noticed them
    on some other outputs (HTML-help if I'm not mistaken).
    I've noticed some similar topics in this forum, but the seem
    to discuss the browsing sequence buttons, which we find less
    usefull.
    Thanks for looking into this!
    Greetings,
    Olivier

    Hi Olivier
    Take a look at my Skinny on Skins file. There are
    instructions inside on how to accomplish this.
    Cheers... Rick

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

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

  • On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?

    On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?
    In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my home, back, forward buttons near the top-left of my header (Button 1 for "new tab"). Then, the tab bar automatically come with a small tab (with a + sign) to the right of your last tab opened (so you click on + and a new tab opens. Button 2 for "new tab"). I like to have this "new tab" button twice (as a + mini tab, and next to my "home icon".
    When I upgraded to Firefox 4, I seemed to be only able to "customize" or use the "new tab" in one place. Either as an icon next to home button, or as a "+ minitab", but NOT both.
    What can I do to put this button in Firefox 4 on BOTH places???
    Your help is really appreciated. I want to upgrade, but I want my buttons on both places...
    I upgraded to FF 4, but downgraded again just because this feature... that's just me of coarse :-)

    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • How do I go back to my old version of Firefox. 4 does not allow me to use two finger mousepad control to expand or contract my screen. Also I don't like the lack of a drop-down arrow next to the back/forward buttons.

    I don't like to have to click and drag to see the drop down history of the back/forward buttons - this requires two fingers or a double tap and hold finger motion. MUCH easier to click and release and take my time to pick the screen I want to go back to, then click on that link with a separate motion.
    I especially don't like that I can no longer expand and contract the screen with two finger motion on my mousepad!!!
    Generally, I don't see any advantage to the new layout - and I have a slight preference to having my tabs closer to the screen rather than above the address bar, since I more frequently click on tabs than on the address bar. If you want to improve the view I would recommend combining the very topmost bar which is part of the window surround with the File Edit etc bar (and please keep File, Edit, View History, etc separated instead of putting them into a dropdown). This will allow the viewer one more line of text on a given webpage, and eliminate the wasted space which is only used to identify the window as FF and provide the close window buttons
    PLEASE help me go back to the old version. It was perfect.

    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Why Have I lost the address bar, back/forward buttons etc, and how do I get them back or should i use internet explorer?

    After updating Fire fox I seem to have lost the address bar,back/forward buttons and all my little apps. How do I get it all back and stop it from happening again?
    == This happened ==
    Every time Firefox opened
    == Today 21/06/10

    To get the Menu bar I followed the excellent advice - I had to press the Alt key and V to get the chance to pick toolbars from the drop down menu. I just right-clicked on the blank page and hit Alt-V.
    Thanks for the tip.

  • How do I get a Drop-down menu on back/forward button

    How do I get the old (FF3) Drop-down menu on the back/forward button, so I can go back/forward more than 1 page at a time?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • I accidentally did something that set my window so that i could not see the website that i was on or the back/forward buttons. how do i get it back?

    i accidentally clicked something and now i cannot see the web address at the top of the page or the back/forward buttons. how do i get that back?

    You probably went into Full Screen mode on your Mac by pressing "command+Shift+F", you can toggle back out of it by pressing "command+Shift+F" again. It is a very useful keyboard shortcut. On other systems that shortcut is "F11".
    See watered down list of keyboard shortcuts, which adapts to your system can be found at
    : https://support.mozilla.org/kb/Keyboard+shortcuts

  • I inadvertantly deleted the back/forward button and the dropdown box how do I get those back

    I inadvertantly deleted the back and forward button at top left as well asthe dropdown box showing preferences How do I get those back? thankyou

    Your description is unclear. Maybe this will help.
    Back/forward buttons are on the Navigation Bar. Be sure the Navigation Bar is being displayed. On the Menu Bar, choose View > Toolbars, if there is no check mark next to Navigation Bar, click Navigation Bar to place a check mark.
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''

  • The back/forward buttons on the tool bar only go one page at a time. I used to be able to click a drop-down and select how far back/forward I wanted to go. How can I get that back

    I can only navigate back/forward one page at a time. The drop down box that used to allow me to see the recent pages and select the page I wanted to go to was immediately to the right of the "forward" button. I can right click over the forward/back buttons and get the dropdown list of recent sites.

    Use right-click on the back/forward buttons to bring up the context menu, the drop down was never needed, and I had suppressed it for a long time to save space.
    that is item #5 in the following, you might want to check out other items there.
    You can make '''Firefox 6.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
    There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

Maybe you are looking for

  • Using Java Reflection to call a method with int parameter

    Hi, Could someone please tell me how can i use the invoke() of the Method class to call an method wiht int parameter? The invoke() takes an array of Object, but I need to pass in an array of int. For example I have a setI(int i) in my class. Class[]

  • Few Java EE questions

    Hey guys I am writing my first EE application and running into a few problems and would appreciate any help i can get overview At the moment the application consists of an enterprise module and a windows client application. Web module will be done la

  • Masking unwanted sides to drop shadow effect (AI CS2 Mac)

    I've got a problem with drop shadows in CS2 (Mac). Can anyone help? I've applied an offset of zero and a blur of 1mm which works fine but the object is at the corner of the artboard and the shadow spills over onto the pasteboard and leaves a fine lin

  • Names for photos in photo stream?

    Can someone please explain why the photos I put into photo stream revert to their old names? I changed the photo names in iPhoto, but when I put them into photo stream, they go back to the earlier names. Thanks.

  • Receiving FaceTime calls

    Is there a way to recieve a facetime call on my powerbook? (have the iphone 3g without facetime)