Determines the number of windows that have been defined.

Syntax

JSV_numberOfWindowsDefined()

Returns

The JSV_numberOfWindowsDefined returns the number of windows defined. If no windows have been defined by either JSV_openWindow or JSV_defineWindow, 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 windowDefinition() {
    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');
}

function windowTest() {
    var count = JSV_numberOfWindowsDefined();
    alert( count + " window" + (count != 1 ? 's have' : ' has') + " been defined.");
}

produce