Web/API/IDBVersionChangeEvent/version

From Get docs

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

A 64-bit integer.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

version

Deprecated'Non-standard'

Chrome

Full support 12

Edge

Full support ≤18

Firefox Full support 16


Full support 16


Full support 10

Prefixed'

Prefixed' Implemented with the vendor prefix: moz

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support 22

Opera Android

Full support 22

Safari iOS

No support No

Samsung Internet Android

Full support 1.0

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.'
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.'
Deprecated. Not for use in new websites.
Requires a vendor prefix or different name for use.'
Requires a vendor prefix or different name for use.


See also