Results 1 - 3 of 3

IDBVersionChangeEvent

The IDBVersionChangeEvent interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
API Database DOM IDBVersionChangeEvent IndexedDB Interface JavaScript Reference storage Storage

IDBVersionChangeEvent.newVersion

In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. These events are fired via the custom IDBVersionChangeEvent interface. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBVersionChangeEvent IndexedDB newVersion Property Reference storage Storage

IDBVersionChangeEvent.oldVersion

In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. These events are fired via the custom IDBVersionChangeEvent interface. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBVersionChangeEvent IndexedDB oldVersion Property Reference storage Storage