Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
creates a new
IDBVersionChangeEvent object, which is used to represent
when a version of the database has changed, as a result of the
onupgradeneeded event handler.
new IDBVersionChangeEvent(type) new IDBVersionChangeEvent(type, options)
A string with the name of the event. It is case-sensitive and browsers set it to
An object that, in addition of the properties defined in
Event(), can have the following properties:
A number representing the previous version of the database. It defaults to
An unsigned long representing the new version of the database, or
nullif the database is being deleted. It defaults is
For a full working example, see our To-do Notifications app (view example live).
|Indexed Database API 3.0 |
BCD tables only load in the browser