windowHDLeaveWarning Property
Specifies whether the end user will be warned if they try to close or navigate away from the interview page without submitting their answers to the host application.

JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
Syntax

JavaScript
var HDLeaveWarning

Field Value

Type: boolean
Remarks

The interview accomplishes this warning by registering for the "before unload" event in the browser. If this behavior is not appropriate for your host application, set this to false.
See Also

Reference