Determines whether or not the window is open.
JSV_isWindowOpen(winName | winHandle)
The JSV_isWindowOpen
returns true if the
window is open; otherwise, false.
The JSV_isWindowOpen function uses the following arguments.
Argument | Description |
winName |
The name of a window that may have been opened using
JSV_openWindow .
|
winHandle | The window handle when using JSV_popWindow or coding your own open window function. |
n/a
n/a
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_isWindowOpen(myWindow) )
alert(myWindow + ": Window is open.");
else
alert(myWindow + ": Window is not open.");
}
produce
Copyright © 1999-2000 Roaring Fork Software. All rights reserved.