Baseline Widely available
The indexedDB
read-only property of the Window
interface provides a mechanism for applications to asynchronously access the capabilities of indexed databases.
An IDBFactory
object.
The following code creates a request for a database to be opened asynchronously, after which the database is opened when the request's onsuccess
handler is fired:
let db;
function openDB() {
const DBOpenRequest = window.indexedDB.open("toDoList");
DBOpenRequest.onsuccess = (e) => {
db = DBOpenRequest.result;
};
}
Specifications Browser compatibility See also
IDBDatabase
IDBTransaction
IDBKeyRange
IDBObjectStore
IDBCursor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4