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

readonly    attribute unsigned long long? version;

Value

A 64-bit integer.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
DeprecatedNon-standard
Chrome Full support 12Edge Full support YesFirefox Full support 4
Full support 4
Full support 9
Prefixed
Prefixed Requires the vendor prefix: moz
IE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 18Edge Mobile Full support YesFirefox Android Full support 22Opera Android Full support 22Safari iOS No support NoSamsung Internet Android Full support Yes

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

Document Tags and Contributors

Contributors to this page: sideshowbarker, fscholz, chrisdavidmills
Last updated by: sideshowbarker,