JavaScript won't close web browser

Captivate 6: JavaScript won't work for my close button as it did in previous versions of Captivate..
< a href="javascript:window.opener='x';window.close();">Close< /a>
Nothing happens when I click it in the web browser. What am I doing wrong?

Hi there
Have you read the link below?
Click here to view
Cheers... Rick

Similar Messages

  • Close Web Browser Window Button.

    Is there a way to create a button that users can click to close the web browser window?  Is it possible to do it through javascript embeded on the button action?
    Thank you.

    Hi Eric
    As I said earlier. Play with JavaScript all you like. Good luck in finding a JavaScript method that will work 100% of the time. I've very doubtful you will.
    The simplest test of JavaScript is the Alert, which you have tried. Often testing JavaScript will fail when testing locally. Sometimes it's because the Flash Security is blocking things. To fix that, click here and follow the instructions.
    As for the slide, it all depends on your Captivate settings. If you want it blanked you can insert an image or something that would cover the background. Nav bar is another story. Probably just have to live with it that way or turn it off if you don't wish to see it. Or maybe insert a caption or image that indicates the movie has finished and to please close the window (since it didn't close automatically).
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Close web browser by clicking button in PDF

    Hi all,
    Is there any way to close the browser which holding a PDF by clicking the button inside PDF, so that the browser can be closed itself?
    Regards,
    Jason

    Use JavaScript:
    http://www.google.com/search?q=javascript+close+window

  • Close web browser

    Hi All,
    I need some help regarding browser. I deploy my application in oracle 10g R2 with application server 10g R2. When I run application in web browser. When i click exit from application. Application is close. but browser is still in running. i need when i click exit from exit button. Application and browser will be close. any idea regarding this query.

    Hi,
    if I remember well the IE doesn't allow to close the browse by executing window.close() from teh page. However, redirecting the request to a HTML page that has window.close() in its onLoad event rigger should do this
    Frank

  • Plugin Won't CLOSE when browser is closed

    HELP!!!!! My machine is the only one that does this here. I have Win2000 professional, IE6 (had 5.5 did it on that too). I am using plugin 1.3.1.04. When I launch a page, even if is not one I developed, could be anything that uses it, it loads the applet and will never EVER close it until I do one of two things. Logout and log back in, or Kill Explore.exe, which hoses up your machine. It is causing a lot of problems in that when I try to use other applications that try and launch a different version of the applet, it crashes everything because I have this other version sitting there that won't go away.
    I have uninstalled everything and reinstalled it, does the same thing. I reported it to SUN, they said they couldn't reproduce and dismissed it. DOES ANYONE KNOW HOW TO FIX THIS??!?!? Its making developing hell.
    thanks.

    I have a similar problem with one of my client's machines. He's running Windows 98 and when he closes the browser down the plug-in does not shut down (the cofee cup icon remains in the system tray).
    When I look a bit closer at the process table on the PC the plug-in is still being "held" by the explore.exe process.
    Any suggestions on how to resolve this??

  • No Gecko based browsers load websites on Windows 7,but they do on Windows XP. Also Firefox process won't close and browser can't close or restart.

    I tried to install firefox 32 and no websites would load and also the process would not close. I tried disabling ipv6 turning my router settings so there is only ipv4 connection and disbaled also dns prefetching and set network settings to no proxy. I uninstalled firefox and tried to reintsall after completely removing everything leaving no trace looking in appdate local and roaming folders and using ccleaner and IObit Uninstaller. Then Firefox would work for a little bit and load Google Facebook and Youtube when I tried it but it was very slow regrading to the instllation of Firefox on my Windows XP which was upgraded from 30 to 32. Uninstalled again and tried older versions of Firefox,K Meleon Lunascape and even Flock. Flock worked but it is going to be unsupported soon. To end,when Firefox loaded webpages the cpu usage jumped from 8% to over 30% and then the websites loaded after the loading circle icon appeared. Other browsers I have work fine. Right now I use Opera.

    I managed to fix the problem myself. I did a scan threat scan with malwarebytes antimalware pro that I had and adwcleaner and quarantined everything the first softare found and cleaned with the second everything that seemed to be leftovers of old unisntalled programs. Then had to delete the kmeleon and firefox appdata leftover profiles. I only lfet the firefox light folders which are the folders of the browser I wanted to keep. I then checked for tweaks. I got windows to desfault settings checking if I have doen any tweaks with avg pc tuneup 2011,Tweak Me! and UWT 2.2 and used TCP Optimizer to bring the network settings to windows default for 9000 kbps download speed (after I did a network speed test). Now firefox light is super fast and xcloses normally.

  • Can not close web browser in N8

    Hi all
    I have a N8 with the latest pr1.1 FW. Since pr1.1 sometimes browser gets blocked and can not be closed with the task switcher. The only solution that I have is to restart the phone. Is someone experiencing this? Is there a fix? 
    Best regards
    Carlos

    Tap the minimize icon (two boxes) in the upper right corner of the Safari page. Then tap the tiny x in the thumbnail to close. You can also swipe the thumbnail to the left to close.

  • Can applet close the Web browser window it embedded in?

    I know that a link or button in the Web browser can close the browser window. But I really don't if the applet can also do it.

    This site does have a search function you know, and if thats too much trouble there is google:
    http://www.google.com/search?q=site%3Asun.com+%22java+to+javascript%22&ie=UTF-8&hl=nl&lr=
    This should point you in the direction of a thing called JSObject
    Here is some code since I have this in my archive anyway:
    the html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
                    >
            </object>
            <!-- <![endif]-->
          </object>
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>the applet:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }

  • Call JavaScript when user closes browser containing webcenter

    Hi
    Scenario:
    1. Webcenter is opened in a browser.
    2. User closes the browser
    Requirement:
    - When user closes browser containing webcenter, a java script (or a servlet) should get called.
    As you know, we can call a script in 'onunload()' of body tag.
    But how do we call it with webcenter?
    Thanks.
    Edited by: 873687 on Dec 14, 2011 5:34 AM

    Here is a few links that I found for the JavaScript side you might play aroudn with.
    http://developer.irt.org/script/1230.htm
    http://www.webreference.com/js/tutorial1/reference.html
    http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20953676.html
    http://www.devguru.com/Technologies/ecmascript/quickref/window.html
    And two in German
    http://www.uni-magdeburg.de/service/www/books/muenz/javascript/objekte/window.htm
    http://www.exine.de/clientseitig/js_work_events.htm

  • I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" the error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" An error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See http://kb.mozillazine.org/Unable_to_save_or_download_files

  • I have an iPod Touch and am going on a cruise where I have been told that I won't be able to use Safari so I should download Firefox.  I found "Mercury Web Browser" Firefox at the app store.  Is this what I need? I'm leaving on Sept. 3rd.

    I have an iPod Touch and am going on a cruise where I have been told that Safari won't work on the ship so I need to download Firefox. My iPod said that Safari cna't download it from the Firefox website.  I found "Mercury Web Browser" Firefox, in the app store (free) and am wondering if that is what I need?  Help, I'm leaving on Sept. 3/12.  Thanks.

    - I never heard that but it may be true. It could be that for some reason Safari can't be used to log into the network. Once logged in, Safari should work fine
    - However, I see nothing that say the Mercury Web Browser is Firefox. I would contact the cruise line and ask if and how you use the ship's['s wifi for an iPhone or iPad (it will apply to iPod touch)

  • When I start mozilla firefox web browser, sometimes I see a message saying that "a Mozilla Firefox is already running, please close it or restart your program", while I don't have one running at that time. What is the problem?

    When I start mozilla firefox web browser, sometimes I see a message saying that "a Mozilla Firefox is already running, please close it or restart your system". As a matter of fact, there is no firefox browser running at that time. Since I cannot do anything about it, I have to restart my computer before I can use the web browser, which bothers me dearly. What is the problem?

    Plug-in and tasks started by Firefox may continue after attempting to close Firefox. The "X" in the upper right-hand corner closes the Window (same as Ctrl+Shift+W) but even if it is the last Firefox window, it does not necessarily close Firefox .
    '''The only proper way to exit Firefox is to use Exit through the File menu''', not the "X" in the upper right corner of last Firefox window.
    ''Menus hidden: then use Alt+F then X.''
    '''Firefox hangs''' | Troubleshooting | Firefox Support ''(some extensions cause a problem)''
    * http://support.mozilla.com/kb/Firefox%20hangs#w_hang-at-exit
    Use the '''Windows Task Manger''' to remove all running firefox.exe in the "Processes"
    tab of the Windows Task Manager, then restart Firefox.
    "'''Restartless Restart'''" extension for Firefox 4.0 only (2 KB download )
    * https://addons.mozilla.org/firefox/addon/249342/
    use to close and restart Firefox after enabling or disabling an extension, switching
    to a new theme, or modifying configuration files, then you don't have to worry
    about delay or have to look in the Task Manager to see if Firefox is closed yet.
    Uses keyboard shortcut "'''Ctrl+Alt+R'''" or a file menu option.
    '''Windows 7''' users can use '''Ctrl+Shift+Esc''' to get to the Windows Task Manager quicker than starting with Ctrl+Alt+Del.

  • Javascript does not work in web browser

    Hello friends.
    I have a problem with javascript in my Captivate project.
    This script only works in preview in Captivate, but does not work in web browser (IE 9, Mozilla, Chrome).
    Anybody knows why?
    Thank you for your answers.

    Common JS interface
    That is the official documentation for JS in Captivate 8. For more information, have a look at Jim Leichliter's website: CaptivateDev.com - eLearning Development with Adobe Captivate

  • Captivate (5) project won't open in Web Browser

    Hello,
    Since a few weeks I can't open my projects in the web browser. Accept one of the projects (only questionslides), i have been searching for differents in the setttings but i couldn't find any differtens. When I publish the project in a .swf still the project won't open.
    When I will get a preview in Web Browser or publish, the project is opening in the Web Browser and it looks like the project fade in and out in not even a second. A quick view of the background is visible . But i don't get any massage of error of something. And the page turn white.To preview the project in capitvate is no problem.
    I hope somebody could help me out.
    Roanne

    Hello,
    I do not know if you have Text Animations in your project? If yes, probably you are having issues due to the latest Flash Player. There is a hotfix to be found in this Captivate blog post:
    Solution for Captivate ...
    Lilybiri

  • Java won't enable in firefox web browser

    I have tried everything possible I could find the fix this issue. I am trying to use the "live chat" feature on the website "car-part.com" in order to chat with auto recycling companies online, but it constantly says that java is not enabled in the web browser. I have gone through the settings and plugins with no luck. I even tried downloading java again from java.com and at the end of the download it states that "java content is disabled in web browsers". What is going on here?

    Java and JavaScript are different languages.
    To avoid confusion, see:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    There has been a change in the Java security settings, see:
    *https://support.mozilla.org/kb/how-allow-java-trusted-sites
    *"What should I do when I see a security prompt from Java?":<br>http://www.java.com/en/download/help/appsecuritydialogs.xml
    If you visit a website regularly then a possible workaround is to add the URL to the Java Exceptions Site List, see:
    *"Why are Java applications blocked by your security settings?":<br>http://www.java.com/en/download/help/java_blocked.xml
    *"How can I configure the Exception Site List?":<br>http://www.java.com/en/download/faq/exception_sitelist.xml

Maybe you are looking for

  • Dynamic Template Selection (for Button)

    Hello all I've got a few buttons on the top of a page. Each button submits the page, and the page displays different things based on the :REQUEST value that these buttons have. eg.. (Options) (Report) (Chart) (Other) I would like it so that the curre

  • JDBC SqlServer connection problem

    Hi, I'm trying to connect to a local Sql Server database. I started out connecting to a database on another computer on the network by using the following code: //Set up connection to database String driverName = "com.microsoft.jdbc.sqlserver.SQLServ

  • Java system error: call FM RSRD_X_PRODUCE_PROXY

    Hi Gurus, When i tried to execute event data change process type in BI component I am getting below error. It clearly says missing password. I haven't understood what password is missing for which user. we checked all user certificates all valid. Bel

  • Session Data Overwriting

    Using weblogic 5.1.0           I create an object and store it in the httpsession when a client           accesses a servlet. When a second client logs in, a similar object is           created for him and put in the session.           When the first

  • New photos not usable in imac wish i could go back to iphotos will not be updating iPhones   or ipads

    update my iMac yesterday no we have Photos instead iPhoto can't copy a photo by right clicking and can't set up like before to use now have to go to menu and copy then past definitely a back step won't be update all my other devices now wish i could