This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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