Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. StorageAccessHandle
  4. indexedDB

StorageAccessHandle: indexedDB property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

TheindexedDB property of theStorageAccessHandle interface returns an unpartitionedIDBFactory object if access was granted, and throws aSecurityErrorDOMException otherwise.

Value

AnIDBFactory object.

Examples

js
document.requestStorageAccess({ indexedDB: true }).then(  (handle) => {    console.log("indexedDB access granted");    await handle.indexedDB.deleteDatabase("foo");  },  () => {    console.log("indexedDB access denied");  },);

Note:SeeUsing the Storage Access API for a more complete example.

Specifications

Specification
Extending Storage Access API (SAA) to non-cookie storage
# dom-storageaccesshandle-indexeddb

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp