abort method
Cancels a transaction.
![]() |
Syntax
IDBTransaction.abort();Parameters
This method has no parameters.
Return value
This method does not return a value.
Exceptions
This method can throw the following DOMException exceptions:
Note As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
| Exception properties | Condition |
|---|---|
|
The transaction cannot be canceled because it has previously been committed or canceled. |
Standards information
See also
Show:
