The version
property of the
IDBVersionChangeEvent
interface returns The new version of the database
in a versionchange transaction.
Warning: While this property is still implemented in older browsers,
the latest specification replaces it with the oldVersion
and
newVersion
attributes. See the compatibility table to know what browsers
support them.
Syntax
readonly attribute unsigned long long? version;
Value
Browser compatibility
BCD tables only load in the browser
See also
- Using IndexedDB
- Starting transactions:
IDBDatabase
- Using transactions:
IDBTransaction
- Setting a range of keys:
IDBKeyRange
- Retrieving and making changes to your data:
IDBObjectStore
- Using cursors:
IDBCursor
- Reference example: To-do Notifications (view example live.)