Determines whether or not the named window is closed.

Syntax

JSV_isWindowClosed(winName)

Returns

The JSV_isWindowClosed returns true if the window is closed; otherwise, false.

Parameters

The JSV_isWindowClosed function uses the following arguments.

Argument Description
winName The name of a window that may have been opened using JSV_openWindow.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var myWindow = "Jack_in_the_Box";
function windowDefinition() {
    var dummy = JSV_openWindow(myWindow,
            'testpage.htm',
            'menubar=1,status=1,scrollbars=1,resizable=1,width=580,height=240,left=40,top=40,screenX=40,screenY=40');
}

function windowTest() {
    if ( JSV_isWindowClosed(myWindow) )
        alert(myWindow + ": Window has been closed.");
    else
        alert(myWindow + ": Window is open.");
}

produce