CloseEvent ⇐ Event

Kind: global class
Extends: Event
Access: public
See: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent

new CloseEvent(code, reason, wasClean)

Creates an instance of CloseEvent.

Param Type
code *
reason *
wasClean *

closeEvent.code ⇒ number

Kind: instance property of CloseEvent
Returns: number - returns the close code sent by the server.

closeEvent.reason ⇒ number

Kind: instance property of CloseEvent
Returns: number - returns the string indicating the reason the server closed the connection..

closeEvent.wasClean ⇒ boolean

Kind: instance property of CloseEvent
Returns: boolean - returns a boolean that inndicates whether or not the connection was cleanly closed.

closeEvent.type

Kind: instance property of CloseEvent
Read only: true

closeEvent.isTrusted : boolean

Kind: instance property of CloseEvent
Read only: true

closeEvent.target : Node

Kind: instance property of CloseEvent
Read only: true

closeEvent.currentTarget : Node

Kind: instance property of CloseEvent
Read only: true

closeEvent.bubbles : boolean

Kind: instance property of CloseEvent
Read only: true

closeEvent.cancelable : boolean

Kind: instance property of CloseEvent
Read only: true

closeEvent.eventPhase

Kind: instance property of CloseEvent
Read only: true

closeEvent.defaultPrevented : boolean

Kind: instance property of CloseEvent
Read only: true

closeEvent.returnValue : *

Kind: instance property of CloseEvent

closeEvent.preventDefault()

Kind: instance method of CloseEvent

closeEvent.stopImmediatePropagation()

Kind: instance method of CloseEvent

closeEvent.stopPropagation()

Kind: instance method of CloseEvent

results matching ""

    No results matching ""