IDBTransaction object
Represents a group of operations made against a database.
![]() |
DOM Information
Inheritance Hierarchy
The IDBTransaction does not inherit from any class or interface.Members
The IDBTransaction object has these types of members:
Methods
The IDBTransaction object has these methods.
| Method | Description |
|---|---|
| abort |
Cancels a transaction. |
| addEventListener |
Registers an event handler for the specified event type. |
| dispatchEvent |
Sends an event to the current element. |
| objectStore |
Returns an object store that is part of the transaction. |
| removeEventListener |
Removes an event handler that the addEventListener method registered. |
Properties
The IDBTransaction object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only |
The database associated with the transaction. | |
| Read-only |
Returns an object describing an error condition. | |
| Read-only |
Describes the operations supported by a transaction. | |
| Read/write |
Defines a function handler for the abort event, which executes when the transaction is canceled. | |
| Read/write |
Defines a function handler for the complete event, which executes when the transaction has committed all pending operations. | |
| Read/write |
Defines a function handler that is executed when an error is encountered during a request, a transaction, or other database operation. |
Standards information
