This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

readyState

Summary

The state of the request. Every request starts in the pending state. The state changes to done when the request completes successfully or when an error occurs.

Property of apis/indexeddb/IDBRequestapis/indexeddb/IDBRequest

Syntax

Note: This property is read-only.

var result = element.readyState;

Return Value

Returns an object of type enumenum

  • pending (1) - The request has been started, but its result is not yet available.
  • done (2) - The request has completed or an error has occurred. Initially false.

Syntax

Standards information

Attributions