close

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

A close event either informs the target RTCDataChannel object that a data connection has been terminated, or informs the target <dialog> that it has been closed.

For WebRTC, an event handler for this event can be added via the RTCDataConnection.onclose property.

General info

Specification
WebRTC 1.0: Real-time Communication Between Browser
The definition of 'close' in that specification.

WHATWG HTML Living Standard
The definition of 'close' in that specification.
Interface
Event
Bubbles
No
Cancelable
No
Target
RTCDataChannelEvent or Element
Default Action
None

Properties

Being an Event, this event implements only the properties of this interface.

Methods

Being an Event, this event implements only the methods of this interface.

Specifications

Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browser
The definition of 'close' in that specification.
Working Draft Initial definition
WHATWG HTML Living Standard
The definition of 'close' in that specification.
Living Standard Definition regarding the <dialog> element

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Support for the WebRTC event (Yes) (Yes) No support (Yes) ?
Support for the <dialog> event ? ? ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Support for the WebRTC event ? ? ? No support ? ?
Support for the <dialog> event ? ? ? ? ? ?

See also

Document Tags and Contributors

 Contributors to this page: cvrebert, teoli
 Last updated by: cvrebert,