Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

Window: indexedDB property

BaselineWidely available

TheindexedDB read-only property of theWindow interface provides a mechanism for applications toasynchronously access the capabilities of indexed databases.

Value

AnIDBFactory object.

Examples

The following code creates a request for a database to be opened asynchronously, afterwhich the database is opened when the request'sonsuccess handler is fired:

js
let db;function openDB() {  const DBOpenRequest = window.indexedDB.open("toDoList");  DBOpenRequest.onsuccess = (e) => {    db = DBOpenRequest.result;  };}

Specifications

Specification
Indexed Database API 3.0
# dom-windoworworkerglobalscope-indexeddb

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp