Determines if the window option is set for the named window.

Syntax

JSV_isWindowOptionSet(winName, winOption)

Returns

If the window option is set, then JSV_isWindowOptionSet returns true; otherwise, false.

Parameters

The JSV_isWindowOptionSet function uses the following arguments.

Argument Description
winName The name of a window that may have been defined by either JSV_openWindow or JSV_defineWindow.
winOption

Optional. Currently only one value can be specified.

ValueDescription
CLOSEBEFOREPARENT Use in conjunction with JSV_hyperLink and JSV_onSubmit to ensure that the child window is manually closed by the user before the parent window is exited either by the user clicking a hyperlink on the page or by form submission.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var myWindow1 = "Jack_in_the_Box";
var myWindow2 = "Taco_Bell";
var dummy = JSV_defineWindow(myWindow1, 'testpage.html', 'status=1,scrollbars=1,resizable=1,width=580,height=240,left=20,top=20,screenX=20,screenY=20', false, CLOSEBEFOREPARENT);
var dummy = JSV_defineWindow(myWindow2, 'testpage2.html', 'status=1,scrollbars=1,resizable=1,width=580,height=240,left=20,top=20,screenX=20,screenY=20', false);

function testWindows() {
   JSV_showWindowDefintion(myWindow1);
   JSV_showWindowDefintion(myWindow2);
}

produce a window that determines if the window option is set