Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!
Sie können den Artikel auch auf English (US) lesen.

The indexedDB read-only property of the WindowOrWorkerGlobalScope mixin provides a mechanism for applications to asynchronously access the capabilities of indexed databases.

Syntax

var IDBFactory = self.indexedDB;

Value

An IDBFactory object.

Example

var db;
function openDB() {
 var DBOpenRequest = window.indexedDB.open('toDoList');
 DBOpenRequest.onsuccess = function(e) {
   db = DBOpenRequest.result;
 }
}

Specifications

Specification Status Comment
Indexed Database API 2.0
The definition of 'indexedDB' in that specification.
Recommendation Defined in a WindowOrWorkerGlobalScope partial in the newest spec.
Indexed Database API
The definition of 'indexedDB' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 24
Full support 24
Full support 23
Prefixed
Prefixed Requires the vendor prefix: webkit
Edge Full support YesFirefox Full support 16
Full support 16
Full support 10
Prefixed
Prefixed Requires the vendor prefix: moz
Full support 52
Notes
Notes indexedDB now defined on WindowOrWorkerGlobalScope mixin.
IE Partial support 10Opera Full support 15Safari Full support 7WebView Android Full support YesChrome Android ? Edge Mobile Full support YesFirefox Android Full support 22
Full support 22
Full support 52
Notes
Notes indexedDB now defined on WindowOrWorkerGlobalScope mixin.
Opera Android Full support 22Safari iOS Full support 8Samsung Internet Android ?
Available in workersChrome Full support YesEdge Full support YesFirefox Full support 37IE ? Opera Full support YesSafari ? WebView Android Full support YesChrome Android ? Edge Mobile Full support YesFirefox Android Full support 37Opera Android Full support YesSafari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Partial support  
Partial support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also

Schlagwörter des Dokuments und Mitwirkende

Mitwirkende an dieser Seite: fscholz, jpmedley, nmve, arronei, chrisdavidmills, libbymc, teoli
Zuletzt aktualisiert von: fscholz,