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.
readonly attribute unsigned long long? version;
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 12 | Yes | 4
|
No | No | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | 18 | Yes | 22 | 22 | No | Yes |
IDBDatabase
IDBTransaction
IDBKeyRange
IDBObjectStore
IDBCursor
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/version