Returns immediately, and rolls back all the changes to objects in the database associated with this transaction.
Returns immediately, and rolls back all the changes to objects in the database associated with this transaction. If this transaction has been aborted or completed, then this method throws an error event.
MDN
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).
MDN
The database connection with which this transaction is associated.
The database connection with which this transaction is associated.
MDN
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched manually with dispatchEvent().
MDN
The error returned in the event of an unsuccessful transaction.
The error returned in the event of an unsuccessful transaction. Null if the transaction is not finished, is finished and successfully committed, or was aborted with IDBTransaction.abort function. Returns the same DOMError as the request object which caused the transaction to be aborted due to a failed request, or a DOMError for the transaction failure not due to a failed request (such as QuotaExceededError or UnknownError).
MDN
The mode for isolating access to data in the object stores that are in the scope of the transaction.
The mode for isolating access to data in the object stores that are in the scope of the transaction. For possible values, see Constants. The default value is readonly.
MDN
Every call to this method on the same transaction object, with the same name, returns the same IDBObjectStore instance.
Every call to this method on the same transaction object, with the same name, returns the same IDBObjectStore instance. If this method is called on a different transaction object, a different IDBObjectStore instance is returned.
MDN
The event handler for the onabort event.
The event handler for the onabort event.
MDN
The event handler for the oncomplete event.
The event handler for the oncomplete event.
MDN
The event handler for the onerror event.
The event handler for the onerror event.
MDN
Removes the event listener previously registered with EventTarget.addEventListener.
Removes the event listener previously registered with EventTarget.addEventListener.
MDN
The IDBTransaction interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes. All reading and writing of data are done within transactions. You actually use IDBDatabase to start transactions and use IDBTransaction to set the mode of the transaction and access an object store and make your request. You can also use it to abort transactions.
MDN