Closing the browser with a single click from form

Hi All,
Will u please help me anyone how to close the browser with a single click pressing exit button or closing the cross buton.
Arif

Always start with a search on this forum
Solution
Instructions:
1. Using an html or text editor, create an html file with the following code:
<html>
<head>
<script type="text/javascript">
// Create a ref to the original method
var windowClose = window.close;
// Re-implement window.open
window.close = function ()
window.open("","_self");
windowClose();
</script>
</head>
<body onload="window.close()">
<!-- The following text added in case users have disabled Java Scripting -->
<!-- or if browser fails to close for some other reason. -->
Your browser or system settings have prevented this window from closing.
In order to ensure the highest level of security,
please close/exit this browser session immediately.
</body>
</html> 2. Save the html file with the following name: close.htm
3. Store this file on the middle tier, in a directory which has an associated virtual path configured in the HTTP Server. You can use a pre-existing path or create a new one. For example, in version 10.1.2 you could copy the html file to this directory:
ORACLE_HOME\tools\web\html
The above virtually maps to the following by default:
/forms/html/
For information on creating a virtual path for the HTTP Server, please refer to the HTTP Server Administrator's Guide.
4. In the Forms application, choose the desired trigger where you would like to execute the closing of the browser. Remember that by executing this code, the application will be ungracefully terminated, therefore it is recommended that the following code only be entered in the Forms POST-FORM trigger.
web.show_document ('/forms/html/close.htm','_self');
5. Compile and run the form.
Upon exiting the form, the web browser will call close.htm resulting in the browser closing.
This has been successfully tested using IE7 on XP-SP3. Although this code will work with other browsers, for example FireFox 3, a configuration change in FF must be made in order for it to work correctly.
Manual Steps Required for FireFox:
1. Open one instance of the FireFox browser.
2. In the address bar, enter the following and press Enter on the keyboard:
about:config
3. In the list presented, locate the following parameter:
dom.allow_scripts_to_close_windows
4. Double-click on this parameter to set its value to TRUE
5. Exit the browser
Edited by: BaiG on Mar 30, 2010 12:23 PM

Similar Messages

  • Closing the browser in InfoView doesn't log the user off.

    In Business Objects XI R2 Infoview, closing the browser in InfoView doesn't log the user off no matter how you answer the subsequent popup question "A window has closed. Log off as well?" Is there a fix for this somewhere?

    hi,
    In InfoView, with Performance Management installed, user sessions fail to be released immediately when the Log Off button is clicked.
    If you click the logoff button in Infoview and watch the address bar you will notice that it actually goes to another page called default.htm. It does this really fast. That page is located at C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView. Remove both the default.htm and index.html and reboot your Tomcat server. Open a browser and go to Infoview. Once you have gotten in to Infoview click the log off button. You will get and error from the tomcat server and that is because the page does not exist anymore. If you look in CMS under servers and CMS you will also notice it dropped the session as well. So if you create another Default.htm page of your own and just redirect to another page it all should work.
    However I did notice an interesting ADAPT in CHF15 :-
    http://support.businessobjects.com/CommunityCS/FilesAndUpdates/boxir2_en_chf15_readme.pdf
    ADAPT00576483 Patch ID: 39,216,665
    Also did u do any customization setting before ?

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it.
    It was very useful with previous version.

    One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • Closing the browser without popup message

    Hi Experts,
    I refered the following thread and done the below steps
    1.Create a Button called Exit.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code:
    String Url;
    try {
    Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
    wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
    4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
    5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
    I have used Ie 7.0
    My questin is when i clicking the button. It show popup message like
    "Do you want to close this window " I don't want this popup.
    without popup i need to close this window? How to do that?
    Regards,
    Manivannan P

    Hi Manivannan p,
    1.Create a Button called Close.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code
    You can try this
    public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
    WDPortalEventing.fire("urn:com.sapportals:navigation", "CloseWindow", "");
    //@@end
    This will help you closing the window with out Popup
    Here we are calling a "Portal Event" called " CloseWindow" to close the windoe
    Get back if you have any questions
    Thanks & Regards
    Swetha

  • Closing the browser - new problem

    Hi Experts,
                      I had this issue of closing the browser in web Dynpro Java. i did it with the help of the experts views posted in SDN(passing the URL of the java file containing the javascript to close the browser to the exit plug). When i created an iView for the application and try to preview it, throws an error reading - com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!. Please help.
    Thank You.
    Kind Regards,
    Manoj Durairaj

    Well, with more testing and my buddy's help, what I've learned is that the "Save and Quit" tabs dialogue takes precedence over the warning for closing multiple tabs.
    By having browser.showQuitWarning set to true, it will ask me to save and quit - but not if "Show my windows and tabs from last time" is selected for Firefox startup, which makes the prompt for save and quit (and close multiple tabs warning) redundant. It will just save for you upon quitting.
    And had I turned off that browser.showQuitWarning manually or by checking "Do not ask next time" on the save and quit dialogue, then the warning for closing multiple tabs would appear upon attempting to close multiple tabs, since I have that warn option set in my tabs settings.
    It's one or the other, save and quit OR warning for closing multiple tabs.
    It would be nice though if there weren't a conflict between the close multiple tabs warning and the quit Firefox dialogue.
    So, I hope this can help anyone else who may be confused or accidentally change options and potentially screw themselves over. After all, I may have sustained a self-inflicted wound in the settings.

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • I have customized my Firefox toolbar. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it. How do I get my customization of the toolbar to become permanent?

    I have customized my Firefox toolbar several times. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it each time. How do I get my customization of the toolbar to become permanent?
    It has occurred with Firefox 4.0.1 and 5.0

    see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Take a picture of your toolbars so you can easily reconstruct them from the default after solving the the problem.
    If it happens to you it will probably happen again in the future so you might want to keep some copies of your modified localstore.rdf file so you can delete the bad one and rename one of the replacements in waiting. Saving, copying and renaming must be done with Firefox down, of course.

  • Is there a way to close a pinned tab without unpinning it or closing the browser completely?

    when i have one of my pinned tabs opened and i open a new tab, i cant find a way to close the pinned tab without closing the browser completly.
    is there a way to close a pinned tab?
    thanks.

    You can also middle-click a tab to close that tab and that also works for pinned tabs.

  • Issue Tracker app closing the browser window on chart page

    Hi!
    I am walking through the Issue tracker tutorial. I have created page 10 (Issues Resolved by Month) which is the chart page. Everything looked fine until I try to run the page. Then it simply closed the browser window after it authenticates me. Anyone else see this? Any ideas?
    Thanks!

    Probably a problem with your SVG viewer installation. Does it happen on other chart pages as well? What browser/svg viewer version combination are you using? There are some known issues with what's labeled as the current svg viewer on Adobe's website and Firefox.
    Earl

  • 2 iframe change with 1 single click in flash

    Hi all, I would like to have 2 iframe change with 1 single
    click in flash, I tried to find the right code but didn't get right
    one. Here I attached the code sample which doesn't work at all but
    you will the idea of what I would like to do. I heard there's a
    solution using onClick function, but I just want to attach to
    simple coding, and not sure if I can handle it, thanks very
    much.

    I mean if I just use the below script, it works.
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    but if I want to control 2 iframes in one clicking, it
    doesn't work(it basically load only the second statment, and skips
    the first). I'd like to know is it possible to combine below 2
    javascript into one?
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    getURL("javascript:loadintoIframe('topframe',
    'top_v_vista_b5.html')");
    thanks again.

  • When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. Pls guide me.

    Dear sir,
    When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. This problem was not there in the older versions less than 3.6.8. Even the browser speed has gone down. This is everyday problem with this browser.
    Pls suggest ASAP.
    Thanks & Regards,
    Tripad

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

  • I can't open the browser. I double click and nothing happens. I tried uninstalling and reinstalling but every time I do this it tells me I have to close Firefox first! I have restarted and then tried downloading to no avail b/c I get the same message.

    I can't open the browser. I double click and nothing happens. I tried uninstalling and reinstalling but every time I do this it tells me I have to close Firefox first! I have restarted and then tried downloading to no avail b/c I get the same message.

    Disable Yahoo Messenger (with the arrow on the right of your account name) in Yahoo mail.

  • Is there a way to make iPhone speak what is displayed on the screen, with a simple click?

    is there a way to make iPhone speak what is displayed on the screen, with a simple click? Instead of going through the Accessibility and VoiceOver feature. This will be very useful if I am driving, or tired of reading from the screen, or watching other stuff ... thanks

    No.
    What is available via Accessibility settings is it.

  • How to avoid the logon screen after closing the browser

    Im working with annonymous users showing a Iview but when I close the browser, instead of closing the browser the logon of portal appears. I dont want that how can I avoid this ?
    thx

    Hi
    I am not clear with your question. How do you close the browser ? Is it by hitting the cross button on the Top right corner ?
    Murali.

  • Logoff while closing the browser.

    HI all,
    Portal logoff is different from closing the browser,as i know.
    But can we do logoff while closing the browser?
    We must close the session such as BSP application.
    Any helpful answer is welcomed.
    THank you.
    Best Regards,
    delma

    hi
    THank you for your advice.
    The strange thing is : there's no popup "closing session" window when i close the browser.
    And I look after the trace.No dsm.terminator is called at all when i close the browser.
    But when I logoff, dsm.terminator is called and the window is poped up.
    This is what i am confused.
    Thank you.
    Best Regards,
    delma

Maybe you are looking for

  • Insert query in BEx 7.0?

    In BEx 3.5 there is a menu item to "Insert Query" into an excel workbook tab.  How do we do that in 7.0? Thanks,

  • The structure _name in the resue_alv_filedcatalog_merge.

    Hi In CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'   EXPORTING   I_PROGRAM_NAME = ALV_PROG_NAME   I_INTERNAL_TABNAME = ALV_ITAB_NAME    I_STRUCTURE_NAME = I_CLIENT_NEVER_DISPLAY = 'X'   I_INCLNAME = ALV_PROG_NAME I_BYPASSING_BUFFER = I_BUFFER_ACTIVE

  • Help in Match-code for field SEARK (Search Term)

    Friends, in my aplication was necessary insert the match-code for SEARK field. I use the function module RH_OBJID_REQUEST in the form OPEN_BOX2 at the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_requi-low. When I use this match-code and select

  • Choppiness and slow speed

    Hi everyone. I am a designer who just hired a Flash artist to create my entire site in Flash. I am disappointed with the way the animation works: it is slow and choppy and embarrassingly amateurish looking. I'm not sure if this makes a difference, bu

  • Restore archivelog on standby failed

    When I tried to restore an archivelog on the physical standby, it failed with the following error: ORA-19870: error reading backup piece 3ekc9vsh_1_1 ORA-19507: failed to retrieve sequential file, handle="3ekc9vsh_1_1", parms="" ORA-27029: skgfrtrv: