By closing a window in firefox browser closes all other windows
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

By closing a window in firefox browser closes all other windows

From: karthi <tkarthi03@gmail.com>
Date: Tue Jan 31 2006 - 06:38:11 CET

Hi,

   I have invoked a html page from an another html page by the
following code

if (args.indexOf("APPLaunched") == -1) {
    var url = "runAPP.shtml" + location.search +
"&APP=sdm&GIF=rsdm&APPLET=XDM&proxyCodeBase=" + proto + "//" + ipAddr +
"/";
            winrunapp = window.open(url, calcWindowArgs(640,560));

    if (winrunapp == null || typeof(winrunapp) == "undefined") {
           alert("You have an active popup blocker. Please disable it for to
function.");
        }
    if (parent.location.search && (parent.location.search.length > 0))
{
        extraArg = "&APPLaunched=1";
    } else {
        extraArg = "?APPLaunched=1";
    }
    parent.location.href = parent.location.href + extraArg;
}
location.href = "home_ui.html";

If I am trying to close the newly invoked runAPP.shtml (child window),
it is closing all the other browser windows exiting all other
applications. These problems persist only in firefox and netscape only.

Please provide me with solutions to avoid closing all other windows.

Thanks in advance,
Karthi
Received on Tue Feb 7 21:28:27 2006