IDBVersionChangeEvent.version
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
JavaScript
Copy Code
<span id="idl-def-IDBVersionChangeEvent" class="idlInterface">readonly attribute unsigned long long? version;</span>
Value
Specifications
Specification | Status | Comment |
---|---|---|
Indexed Database API The definition of 'IDBVersionChangeEvent' in that specification. |
Candidate Recommendation |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
version |
12 webkit |
From 4.0 (2.0) to |
Not supported | Not supported | Not supported |
oldVersion |
23webkit 24 |
10, partial | 15 | 7.1 | |
newVersion |
23webkit 24 |
10, partial | 15 | 7.1 |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 4.4 | 22.0 (22.0) | 1.0.1 | 10 | 22 | Not supported |
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.)
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/idbversionchangeevent/version