Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

close

Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!

close events are generated by several APIs:

HTML DOM
Sent to a target <dialog> to let it know that it has been closed.
IndexedDB API
Sent to the IDBDatabase object representing a database connection when the database is unexpectedly closed. This happens after all transactions have been aborted. You can use IDBDatabase.onclose to establish the event handler.
WebRTC API
Sent to an RTCDataChannel to let it know that a data connection has been terminated. You can use the RTCDataConnection.onclose property to establish an event handler for this, in addition to using addEventListener().
WebSocket API
Sent when a WebSocket connection closes. More information needed here.

General info

Specification
WHATWG HTML Living Standard
The definition of 'close' in that specification.

Indexed Database API
The definition of 'close' in that specification.

WebRTC 1.0: Real-time Communication Between Browser
The definition of 'close' in that specification.
Interface
Event
Bubbles
No
Cancelable
No
Target
HTMLDialogElement, IDBDatabase, RTCDataChannel, or WebSocket
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 Definition for the WebRTC API
WHATWG HTML Living Standard
The definition of 'close' in that specification.
Living Standard Definition regarding the <dialog> element
Indexed Database API (Second Edition)
The definition of 'close' in that specification.
Editor's Draft Definition of the connection closing algorithm and its use of the close event

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Support for the WebRTC event (Yes) (Yes) No support (Yes) ?
Support for the WebSockets event (Yes) (Yes) (Yes) (Yes) (Yes)
Support for the IndexedDB event ? 50 (50) ? ? ?
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 WebSockets event (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
Support for the IndexedDB event ? ? 50.0 (50) ? ? ?
Support for the <dialog> event ? ? ? ? ? ?

Autorzy i etykiety dokumentu

 Autorzy tej strony: Sheppy, cvrebert, teoli
 Ostatnia aktualizacja: Sheppy,