Synopsis
Usually used to evaluate script when
a
window is closed with the close button or via a
window.close( ) call, this event traps the closure
of a widow. If the JavaScript evaluates to
"true," the window closes;
otherwise, the window remains open.