Closes the the named window if it is open.

Syntax

JSV_closeWindow(winName)

Returns

n/a

Parameters

The JSV_closeWindow function uses the following arguments.

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

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var myWindow = "Jack_in_the_Box";
function closeMyWindow() {
    JSV_closeWindow(myWindow);
}

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

produce