Determines the number of windows that have been defined.
JSV_numberOfWindowsDefined()
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.
n/a
n/a
n/a
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
Copyright © 1999-2000 Roaring Fork Software. All rights reserved.