Skip to main content
IDBRequest object

Represents a request made against a database.

DOM Information

Inheritance Hierarchy

The IDBRequest does not inherit from any class or interface.

Members

The IDBRequest object has these types of members:

Methods

The IDBRequest object has these methods.

MethodDescription
addEventListener

Registers an event handler for the specified event type.

dispatchEvent

Sends an event to the current element.

removeEventListener

Removes an event handler that the addEventListener method registered.

 

Properties

The IDBRequest object has these properties.

PropertyAccess typeDescription

error

Read-only

Returns an object describing an error condition.

onerror

Read/write

Defines a function handler that is executed when an error is encountered during a request, a transaction, or other database operation.

onsuccess

Read/write

Defines a function handler for the success event, which executes when a request completes successfully.

readyState

Read-only

Indicates the status of the request.

result

Read-only

Returns the result of a request.

source

Read-only

Returns a reference to the source of a request, such as an object store or a cursor.

transaction

Read-only

Returns a reference to the transaction associated with the request.

 

Standards information

Remarks