Does window.opener persist (javascript)?

If a new popup (created from a parent window) uses window.opener, and the popup reloads itself when it's form is submitted to the same page by calling the same url (jsp) it was created with, does the window.opener retain it's handle on the parent window? Assume both the parent and the popup are never closed between submissions.
In simple testing, I am finding that window.opener is in fact retained, and the popup can manipulate the parent window even after the popup is reloaded. Likewise, the parent window can still be manipulated from the popup when the parent is reloaded. But I just wanted to more sure before I incorporate this in a larger application, in case my simple test was some accidental fluke.
I realize javascript variables are normally reloaded, but my initial testing suggests that the window.opener is a special persistant variable.

Curt,
In the DOM opener is a Window property, therefore, if neither window is closed, all of the window properties persist.
Alex C.

Similar Messages

  • Javascript menu does not open, gets 'Javascript Open' box.

    A client with IPAD iOS 5.1.1 does not open a menu on my website.  But 2 similar Ipads do open the menu fine.  The client has Javascript 'on' in Safari.  When he taps a little longer, he gets a box that says 'Javascript Open' but nothing further happens.  I am not a developer, just trying to get the client into his data.  Any ideas?  Is there another setting I should have on?

    some things he might try:
    In Settings, make sure private browsing is not turned on. Without knowing the specific script and mechanism, I wouldn't think this is the cause, but worth checking.
    Clear history and clear cookies and data
    Double click the home bottom and close Safar from the apps tray.
    Reset the iPad: Simultaneously hold down the Home and On buttons until the iPad shuts down, then restart it.

  • Firefox windows opened by javascript fail

    I have a script that opens several windows. I've been using it for years. It worked just fine in all the iterations of Firefox 2 and Firefox 3. But in Firefox 4 there are two problems:
    1. There is no bookmark bar and nothing I do can make it appear. Firefox windows that I've opened from the menu or the initial window do not have this problem.
    2. When I right click a link to open in a new tab the new tab opens on the initial firefox window instead of the window in focus if that window was opened with a script.
    It seems that if a window is opened with a script, that Firefox doesn't fully recognize it. Here's the part of my script that opens a new window:
    function OpenWindo( URL ) {
    intWidth = screen.width - 100; //Adjust for the end of screen (don't know why?)
    intHeight = screen.height - 10; //Adjust for the Icon Bar at the bottom of the window.
    winprops = "toolbar=yes,location=yes,directories=yes,status=yes"
    + ",width=" + intWidth
    + ",height=" + intHeight
    + ",menubar=yes,scrollbars=yes"
    + ",resizable=yes,copyhistory=yes"
    + ",top=0,left=0"
    xyz=window.open( URL, "", winprops)
    Thanks for your help
    Ed

    Thanks for posting that solution!

  • Firefox does not open links with a new window or tab for certain web sites, e.g. Santander On line banking, help links.

    When accessing some sites where they have links for additional information that would normally open a new window or tab, Firefox does not open either. This happens on a variety of sites, most recently the Santander on-line banking site.
    == URL of affected sites ==
    http://

    Such JavaScript links should show the image in the same tab, so make sure that you left click such links.
    * http://kb.mozillazine.org/JavaScript
    Try to reload the web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Javascript window.open needs to always open in a new window

    I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
    I have added this javascript to my page html header
    function launchAbout() {
    about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
    return false;
    I then have a html region with the source as:
    A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
    When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
    It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
    Edited by: user531645 on Sep 24, 2009 7:33 AM
    Edited by: user531645 on Sep 24, 2009 7:38 AM

    I was able to fix my problem. I had to change the java script to this:
    function launchAbout() {
    about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
    return false;
    }

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

  • Window.open() & window.close () does not work in Portal application

    Hello All,
    I am trying to open & close a popup window from a weblogic portal. But the following don't seem to work in this environment. As a web application, it works fine.
    <netui:anchor action="DetailedWorkObject" target="<script @lang ='java'> window.open('IndividualWorkObjectDetails.jsp','null','resizable=no, HEIGHT=500,WIDTH=500'); </script>" >
    <netui:parameter name="CLAIM_NBR" value="{container.item.claim_Nbr}" />
    <netui:label value="{container.item.claim_Nbr}"/>
    </netui:anchor></td>
    I am using Weblogic Workshop 8.1 SP3.The above code opens up a new window but it cannot be closed with
    window.close()
    self.close nor this.close().
    I have even tried calling the script function where I write this code but without success.
    Does any one know why is this happenning ? Please tell me what is the work around for this situation.
    Please answer it as soon as possible.
    Thanks & have a wonderful Holiday!
    Message was edited by aatishbh at Nov 26, 2004 12:02 PM

    Not sure if anybiody answered this for you, or if you figured it out, but here you go. In the skins directory, the default skin contains a menu.js file which has the following function at line 232:
    function close(menuItem)
    if (menuItem && !currentMenuItem)
    closeAll(menuItem);
    This function is overriding the inherent javascript close() function. Simply rename this to something else (I renamed it to closeItem) and rename the call to it at line 228 (setTimeout("close(tmpMenuItem)", tryClosePause);), and you're golden.
    The two functions should look like this:
    function tryClose(menuItem)
    if (!currentMenuItem)
    tmpMenuItem = menuItem;
    setTimeout("closeItem(tmpMenuItem)", tryClosePause);
    function closeItem(menuItem)
    if (menuItem && !currentMenuItem)
    closeAll(menuItem);
    Hello All,
    I am trying to open & close a popup window
    opup window from a weblogic portal. But the following
    don't seem to work in this environment. As a web
    application, it works fine.
    <netui:anchor action="DetailedWorkObject"
    target="<script @lang ='java'>
    window.open('IndividualWorkObjectDetails.jsp','null','
    resizable=no, HEIGHT=500,WIDTH=500'); </script>" >
    <netui:parameter name="CLAIM_NBR"
    value="{container.item.claim_Nbr}" />
    <netui:label value="{container.item.claim_Nbr}"/>
    </netui:anchor></td>
    I am using Weblogic Workshop 8.1 SP3.The above code
    opens up a new window but it cannot be closed with
    window.close()
    self.close nor this.close().
    I have even tried calling the script function where I
    write this code but without success.
    Does any one know why is this happenning ? Please
    tell me what is the work around for this situation.
    Please answer it as soon as possible.
    Thanks & have a wonderful Holiday!
    Message was edited by aatishbh at Nov 26, 2004 12:02
    PM

  • HTMLbeforeForm= SCRIPT LANGUAGE="JavaScript" window.opener = top; /SCRIPT

    I've found this line of code in my formsweb.cfg file, but to be honest I have no clue what it's doing.
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    Anyone know what this code might be responsible for?

    I have seen this sometimes used to prevent the user being asked if they want to close the window when a javascript command to close the window is issued. Not sure it always works with different browsers or versions.

  • APEX_ITEM.POPUP_FROM_QUERY does not open nw window, does not return a value

    Hi.
    I am trying to use APEX_ITEM.POPUP_FROM_QUERY:
    SELECT
    APEX_ITEM.POPUP_FROM_QUERY
    1,
    ftdpr.POWNUMBER,
    'SELECT DISTINCT ftp1.POWNUMBER AS "DISPLAY", ftp1.POWNUMBER AS "RETURN" FROM CBI.FT_POW ftp1 WHERE ftp1.EXCHANGE=133 AND ftp1.FLOOR_NUMBER=1'
    ) PowerID
    FROM CBI.FT_DECOMM_POWNUMBER_READINGS ftdpr WHERE ftdpr.REFERENCE_ID = 'AD13312880DC';
    The box and link icon appear but when I click on the link icon:
    * firstly it does not open in a new window but opens in the original window - not much of a popup !!
    * secondly, in the existing window (which has been overwritten by the "popup"), it shows the results of the query (apparently as hyperlinks) ok but when I click on a returned value hyperlink nothing happens i.e. there is no "return".
    What am I doing wrong ?
    I have been able to get the other apex_item api procedures (e.g. SELECT_LIST_FROM_QUERY) to work ok but not APEX_ITEM.POPUP_FROM_QUERY.
    I can write what I want in Javascript but APEX_ITEM.POPUP_FROM_QUERY was perfect for what I was asked to do.
    Thanks,
    Brett Morgan

    Sorry forgot version I am using:
    Application Express 3.1.0.00.32
    Oracle 10g

  • GetURL("javascript:var myWin=window.open

    Hi,
    Built a bunch of PDFs using Acrobat Pro 6 -
    They are viewed in a web browser and use:
    getURL("javascript:var myWin=window.open('http://www.website.com/myfile.asp', 'aWin', 'width=450,height=450,top=150,left=150, scrollbars=1, statusbar=0, menubar=0')");
    to open a web page, with a fixed size.
    The javascript links do not work in the current Reader.
    What do I need to do?
    Thanks,
    Pappy

    Not at all.  You can edit your JavaScript in Acrobat 6.x but Acrobat 6.x  just won't recognize the launchURL(); method.  You could use Reader 9.0 to test the JS to make sure it's working after doing the edits.
    Oh!  I almost forgot you can find the new JS API documentation here to make sure you have all the parameters correct for the method.
    http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.ht m?&accessible=true

  • Web.showdocument javascript:window.open

    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    syntax doesn't work on web forms on forms9i
    what could be the reason?

    This is the result of new security restrictions added to IE. This is not an issue with Forms.
    More info can be found with a Google Search. Here are additional references:
    Oracle Bug 3813722 -
    After Applying Ms Security Patch 867801 Javasript In Forms Does Not Work Anymore
    Microsoft:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;884763

  • Double tapping Outlook 2010 Calendar appointment does not open it in Lenovo ThinkPad Helix with Windows 8 Enterprise

    I've found out a strange behaviour of Office Professional Plus 2010 (SP1) calendar appointments in Windows 8 Enterprise touch screen device (Lenovo ThinkPad Helix): if I try to open the appointment by douple tapping, it does not open, but in many cases
    the appointment is just moved forward for half an hour. With normal mouse douple clicking works fine. Office SP2 does not fix the issue. So maybe this is not an Office, but Windows problem?

    Hi,
    It’s really a weird behavior. It’s not possible to write on the calendar items in Outlook by double tapping. Did this behavior change all appointments time or just the one you tapped on? Please log on the OWA and check if the appointment time changed there.
    Meanwhile, please try the following troubleshooting steps:
    1. Start Outlook in safe mode and check if the issue persists. (Press
    Windows key + R, type “outlook.exe /safe” in the
    Run box, press Enter)
    If the issue would be gone in safe mode, please go to File > Options > Add-ins and disable the suspicious add-in to resolve the issue.
    2. Try reset your calendar current view and check the result.
    Also try to change to another view (such as List view) and double tapping the appointment to check the result.
    3. Do you have any other calendars? If so, please check this issue in other calendars.
    Thanks,
    Steve Fan
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Whenever a prompt window opens, the first option is highlighted in blue. Tried restarting, but the problem persisted.

    Whenever a prompt window opens, the first option is highlighted in blue. Tried restarting, but the problem persisted. I don't recall doing anything unusual when the problem started.

    The fact that the cancel button (first option) is outlined in blue is what's bugging me. I've never seen this happen before. This happens with every single dialog/prompt window.

  • IPad 2 Safari javascript window.open bug

    I am building a web app that uses the PicUp app to upload photos.
    Part of how it works requires me to open a new tab with javascript, which fires some script to open a new url in an iframe on the previous page.
    I have named the 'windows' accordingly, and it works properly on the iPad 1 (Safari).
    But in iPad 2, the window.open function does not seem to take in a target window parameter, resulting in broken UI. The new tab opens, but the script to open a new URL in the other page's iframe does not work.
    My image still uploads, but the user would be confused, as there is no confirmation screen.
    Help!
    PS: I would also like to comment that it is fairly convoluted to have to download a 3rd party app just to handle http uploads, something every other browser can do natively. What is the reasoning behind not allowing iOS Safari to upload like normal?
    Thanks
    John

    Was able to produce a small test case. 
    To demonstrate this problem, there are three pages.  You will need to load window1.html.  That page has buttons to load the other windows.  Make sure all files are in the same directory.
    window1.html
    <html>
    <head></head>
    <body>
    <script>
    window.name='win1';
    var si = setInterval('check()', 1000);
    function check()
        var d = new Date();
        var s = d.toString() + ' hash: ' + window.location.hash + "\n";
        var log = document.getElementById('log');
        log.value += s;
        log.scrollTop = log.scrollHeight
    </script>
    <form name='myform'>
    <input type=button name='cmd' value='Start second window (no close)' onclick="window.open('window2.html', 'win2')">  
    <input type=button name='cmd' value='Start third window (with close)' onclick="window.open('window3.html', 'win2')">
    <br />
    <textarea cols=80 rows=10 id='log'></textarea>
    </form>
    </body>
    </html>
    window2.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from2','win1');
    </script>
    <p>This is window2.html</p>
    </body>
    </html>
    window3.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from3','win1');
    window.close();
    </script>
    <p>This is window3.html</p>
    </body>
    </html>
    Test scenario:
    If you run window1.html, you will see it is updating the text field with the time and displaying the current hash.  If you press the button 'Start second window (no close)', you will see another tab open up and stay there and the window1 text field will display the hash 'from2'.
    You can close the window2 tab if you want now (don't think it matters).
    If you then press the button 'Start third window (with close), the window1 tab is gone and window3 is still up there.  The title bar says it is window3 but it is not even displaying 'This is window3.html'  If I do a view source (using a javascript bookmark), it does show the window3 script but the <p> and text is not there.  Probably died in the script before parsing was finished.  This is the first problem.
    Now load the window1.html again in the browser (type on URL line).  If you press the 'Start second window (no close)", the one that worked before, and click on the window1 tab to view it and display the updating text box, you will see it did not see the hash change.  This looks like that physical tab was corrupted in Safari from the window 3 test.  I just found if you open a new tab, the new tab will be ok to run the second window (no close test).  At least until you run window3 (with the close).

  • WebHelp - With help window open, second application click does not bring help window back into focus

    Hello all,
    Using RH11 to create context sensitive WebHelp for use with apigee-to-go console.
    Console allows URL calls to launch help in a new browser window (named within the help project).  Works fine except that the browser help window does not regain focus when subsequent context calls are made from the application.
    Steps:
    With application running in a browser window, I click a help link.  New browser window opens with correct help topic displayed.
    Return to application without closing help window.  Application window takes focus; help window moves to back.
    I click another help link. Help window does not regain focus.  However, it DOES move to the correct topic.
    I've tried lots of things.  Nothing seems to fix this.
    For reference, my context call looks like this:
    http://<URL>/index.htm#<id=37>>wnd=HelpPopup
    Thanks for any help anyone can provide.
    Jeff Seltzer

    Thanks for the responses, but this doesn't really help.
    I'm using a simple URL to make the call.
    (That's all I can do within the web app API console I'm working with.)
    If I knew how to crack open all of the javascript that RH creates (and had that much time to work on it), I'd try to address it.
    I have to give up for now.
    I've just appended >>newwnd=false to the end of my calls, so the help appears in another browser tab, rather than its own window.
    This isn't great, since each call opens a new tab, but that's better than the help window disappearing behind the sea of open windows most of us have going on, only to cause the user to hunt for it (if they even know it's there).
    So, <URL>/index.htm#<id=37>>wnd=HelpPopup
    becomes <URL>/index.htm#<id=37>>wnd=HelpPopup>>newwnd=false
    Thanks all for your pointers.
    If I ever find the time to really work on this issue, I'll post a fix (if there is one).
    (Again, I suspect this is just buggy RH javascript.  RH knows enough to update the contents of the help/browser window, but not enough to focus it.)
    Best,
    Jeff Seltzer
    RoboHelp user since v1.1

Maybe you are looking for

  • Why can't I read old iMessages on iPhone 5c?

    Suddenly I am unable to scroll back further than 1st November in a particular iMessage conversation, the thread only started in October when I got the iPhone I have contacted Apple who are unable to explain why this has happened. My message settings

  • Type too small on finder

    Running OS10.7.5 on macmini.  The type on finder stuff is too small. -- -  I'm talking about the line at the very top, including the apple on the far letft, the date, name of user user ,etc., as well as on the safari, on my yellow stickies, and what

  • Enter key selection

    So I realize this is a dumb question, but I really don't have neither the time nor the patience to figure it out. I have a MacBook, running 10.5.4 On the folders window (say Pictures) when I click on a specific folder and hit enter, it will select th

  • Changing a Salespersons First name on their account is reflected in some, but not all places

    We have a BI Chart report against our Sales Cloud application which displays a total of Pipeline dollars grouped up to the Direct Report.  The report is displaying the data as we expect it to except when we made changes to a user's name.  We had a re

  • I seem to have two library folders.

    One in Macintosh HD and the other in my use folder. What should I do? Thanks, Mark