Determines the number of windows that are open.

Syntax

JSV_numberOfWindowsOpen()

Returns

The JSV_numberOfWindowsOpen returns the number of windows open. If no windows have been opened by JSV_openWindow, then zero is returned.

Parameters

n/a

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var myWindow = "Jack_in_the_Box";
function openMyWindow() {
    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() {
    var count = JSV_numberOfWindowsOpen();
    alert( count + " window" + (count != 1 ? 's have' : ' has') + " been defined.");
}

produce