wasClean
Summary
Indicates whether the server connection closed cleanly.
Property of dom/CloseEventdom/CloseEvent
Syntax
Note: This property is read-only.
var wasClean = event.wasClean;
Return Value
Returns an object of type BooleanBoolean
Whether the connection was cleanly closed.
Examples
function getCloseClean(e) {
//retrieve whether connection was cleanly closed
var closeClean = e.wasClean;
return closeClean;
}
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]