この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

Warning: The latest specification does not include this interface anymore as the IDBDatabase.setVersion() method has been removed. See the compatibility table for version details.
The new way to do it is to use the IDBOpenDBRequest interface which has now the onblocked handler and the newly needed onupgradeneeded one.

The IDBVersionChangeRequest interface the IndexedDB API represents a request to change the version of a database. It is used only by the setVersion() method of IDBDatabase.


Inherits from: IDBRequest

Updates the version of the database. Returns immediately and runs a versionchange transaction on the connected database in a separate thread.


Attribute Type Description
onblocked Function The event handler for the blocked event.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support From 12 to 23 -webkit From 4.0 (2.0) to 4.0 (2.0) No support No support No support
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support 6.0 (6.0) ? No support No support



 このページの貢献者: inexorabletash, chrisdavidmills, fscholz, teoli, nehasharma, grendel, jswisher
 最終更新者: inexorabletash,