How to open an URL and close the URL window, using adobe javascript

Hi,
  Is it possible to open an URL and close the URL back again(without allowing the user to perform any other operation)? I was able to acheive the opening of the URL, using the app.launchURL("address". true); - But here it lauches in new window, and how do i close the window using the javascript. Is it possible?
Thanks.

Hi all
In addition to what Bobby W - Adobe TS added, you might find
the following useful as a bypass or workaround to the pesky prompt.
var pw=window.parent;pw.opener=window.self;window.open("
http://www.adobe.com");
pw.close();
I think this will only work for IE browsers. Actually, I
think the whole window.close() only works for IE, but could be
wrong about that.
Cheers... Rick

Similar Messages

  • I downloads the latest iTunes software update and it properly installed.  But,  I cannot close the window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the

    I downloaded the latest iTunes software update and it properly installed.  But,  I cannot close the update window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the window.  Tried to quit on both the big window and the software update title in the menu bar.  No luck.

    Tried that by shutting down via the power button only as the normal shutdown was nixed by the open window issue.  It did not help.  Found a very similar question in the discussions and it recommended "Force Quit".  That worked and the update works normal and the window is gone.  Thanks!

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard.

    How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard. (I selected 'Fit to scale' and there's a huge gap on the top and bottom).

    Those margins are usually reported from the printer settings to Acrobat. Meansif you have, for example, an inkjet printer and that printer can not print seamlessly, then there will be a minimum margin.
    Check your printer's page settings.

  • When I have two browser windows open, the first with multiple tabs the second a window opened from a link (so just one tab), and close the second window, I receive the Quit Firefox prompt, "do you want to save tabs...?"

    This was happening with FF 3 before upgrading to 4, and was not happening with FF4.0 until the 4.0.1 update was applied, the first time it ran. Same issue on another computer running FF3, so may be a extension related problem.
    If I have three windows open and close the third, I do Not get this. Only when two are opened and one is closed. I could have three, close one, then the second and get the prompt.
    Not disabled extensions
    Adblock Plus
    BugMeNot
    Cooliris
    Download Statusbar
    DownloadHelper
    DowntThemAll!
    FireGestures
    HTML5 Extension for Windows Media Player
    HTTPS-Everywhere
    Java Console
    PDF Download
    Session Manager
    TinEye Reverse Image Search
    YouTube Comment Snob
    Disabled

    Does that 2nd window have a '''Close Window''' hyperlink on that page and you are using the X in the upper right corner of that 2nd window to close it?

  • When closing my Firefox window, all processes are not closing requiring me to open task manager and kill the process before using Firefox again. Received recent upgrade and hasn't worked right since then.

    I open Firefox, use it, then close the window. Try to reopen Firefox and it fails with a message that a previous process is still running. Requires me to open Task Manager and kill the old process.

    Try to wait a bit longer before reopening Firefox to give Firefox more time to close completely.<br />
    Try to use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • How to open a new iView in the same window?

    Hi
      i want to open a new iview in the same window.How can i do that ?
    Thanks

    Hi,
    If u want to code in WDJ  ..
    Use following method
         WDPortalNavigation.navigateAbsolute(
         "ROLES://<PCD location>,
         WDPortalNavigationMode.SHOW_INPLACE,               WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
         (String) null  );
    SHOW_INPLACE is the key
    Cheers!!
    Ashutosh

  • Open second vi and close the first vi

    i want to open the second.vi to be open from one.vi and,, and at the same time i want to close one.vi,,,
    i find may answers in labview about this but any of them could not setisfy my requirment,,,
    manisha

    What is your requirement?
    The way to do this is with the VI Server. From one.vi get a reference to second.vi and launch it using the Run method. Then have one.vi close itself by getting a reference to itself and closing its front panel. Note that your code should also be written such that one.vi stops executing once that occurs otherwise it will keep running even though the front panel is closed. So, if you have some sort of while loop that continuously runs you will need to stop it.

  • Firefox lags too much when i download and close the current window, then try to open a new window. why?

    ok, everytime i download something the download window pops up, so i let it download and i like to keep it open so i can monitor my downloads. now, the problem is when i close the current firefox browser window and try to re-open a new one. my firefox browser window starts lagging/hangs very bad when i open up a new browser window. i have my settings set up to clear my history everytime i close my firefox, so i was wondering why it does this? is it because my history gets cleared and i still have my download window opened?

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • How to open a form and close another one

    hi,
    I wish to open a form from another, and then close the calling form. In other words, having FORM1 and FORM2, FORM1 should do this:
    OPEN_FORM ('FORM2',ACTIVATE,SESSION);
    EXIT_FORM(NO_COMMIT,NO_VALIDATE);
    but I cant get this to work. As FORM1 is modal, it opens FORM2 but its still open. Changing the order of the two statements only cause FORM1 to be closed. Can I perform the two operations from within FORM1, avoiding to put the EXIT_FORM statement in FORM2?
    thank you

    Hello,
    Use NEW_FORM to replace the calling module.
    Francois

  • How to open indesign files and close

    i want to open indesgin files exist in the folder and i want to open all the files one by one and i want to close wht are the files i opened
    could anyone tell me.

    The following script does exactly that.
    var fileLocation = Folder.selectDialog("Select a folder");
    folder = new Folder ([fileLocation]);
    folderContents = folder.getFiles("*.indd");
    var openedFiles = new Array;
    var filenames = new Array;
    for (i=0; i<folderContents.length; i++)
    filenames.push (folderContents[i]+"\n");
    openedFiles.push(app.open (folderContents[i]));
    str = filenames.join();
    if (confirm ("Close "+str) == true)
    for (i=0; i<openedFiles.length; i++)
      openedFiles[i].close();
    As you can see, you are responsible yourself  for keeping a list of the files you opened. But with that list, you can do some interesting stuff -- such as closing the same files again.

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

  • How to call next .swf and close the previous?

    Hi guys,
    i'm having a big trouble using the loadMovie command.
    I want to do a book and at the end of each chapter the next button will appoint to the next .swf ,but the previous has to disappear.
    At moment, i created a empty movieclip named "load" in ALL .flv files ..he stands for all the time line. But when i advance to the next swf, it loads above the previous file, accumulating the files one above the other.
    Here is the AS what i'm using in the last frame of my flv:
    stop();
    next_btn.onRelease = function(){
              loadMovie("next_file.swf",load);
    prev_btn.onRelease = function(){
              gotoAndStop(previous_page_frame)
    So.. all i want to do is create a sequence: file 1 calls file 2 and close file 1
    ..and have the option to return to the previous file when i want: in the first frame of the file 2, the previous button will appoint to the file 1.
    Any ideas? Thanks so much

    yes.
    you would need to use preloader code (ie, start a loop like enterframe and check the _framesloaded property of the load-target movieclip) to ensure the needed frame is loaded and then use a goto applied to the load-target movieclip.
    however, there's no way to do that if you continue to use code like this.loadMovie().

  • How to open XML form item into the same window?

    Hello All,
    I've developed a xml form, when I click on the  item with KM Navigation Iview It opens in a new window.( _blank ).
    Is there a way to open it in the same window ( _self )?
    Thanks
    Amit Yosha

    Hi Amit,
    at the moment, this is not configurable. See XML form display in same browser window for possible workarounds.
    Hope it helps
    Detlev

  • How to open a file and display the complete file path?

    In my script, I want to create a dialog that prompts the user to define a few variables for the script. One of those variables is the path to a template file. I want it to work the same way that an upload form works. You click the browse button, the dialog appears so that you can browse for the file and then when you click OK or Open, the full path of the file is displayed in the text box next to it. How do I do this with JavaScript? I got this far and it seems to be working, but the wrong text is being displayed in the text box. Plus: How do I properly restrict the file types to PSD. The code doesn't seem to work, despite the fact that there are no errors reported. Initially the Text box is blank, but After I browse for the file, the text box says: "File". Here is the problem area:
    defineVars.STPnl.STBrowse.onClick = function browseST() {
    var stbFile = File.openDialog("Select the Single Mugshot Key Template File", "File Types: *.psd, *.PSD");
    defineVars.STPnl.STPath.text = stbFile;
    Thank you to whoever assists me! :)

    Change this:
    defineVars.STPnl.STPath.text = stbFile;
    To this:
    defineVars.STPnl.STPath.text = stbFile.fullName;
    The reason is that stbFile is a File object, you need to access its properties in order to get the full path.

Maybe you are looking for