Determines if any child windows are open that have the CLOSEBEFOREPARENT option set. If this option is set and an attempt is made to submit the form, then the child window is brought forward for the user to close before the form can be submitted.

Syntax

JSV_onSubmit()

Returns

n/a

Parameters

n/a

Remarks

To use the JSV_onSubmit function in a form by adding this function to the FORM tag (e.g., <FORM onSubmit="return JSV_onSubmit();">). If you find it necessary to create a function that will perform other functionality when onSubmit is activated, be sure to include the JSV_onSubmit function as the last call in your new function.

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function webPageOnSubmit() {
    var submitForm = true;
    // Your code goes here

    if (submitForm) submitForm = JSV_onSubmit();
    return submitForm;
}
</SCRIPT>
<FORM ACTION="formPost.cfm" METHOD="POST" onSubmit="webPageOnSubmit();">
</FORM>

Dependencies

n/a

Example

n/a