complete

Le gestionnaire complete est exécuté lorsqu'une transaction est complétée avec succès.

Informations générales

Spécification

IndexedDB

Interface

Event

Propagation

Non

Annulable

Non

Cible

IDBTransaction

Action par défaut

Aucune

Propriétés

Property Type Description
target Lecture seule EventTarget The event target (the topmost target in the DOM tree).
type Lecture seule DOMString The type of event.
bubbles Lecture seule Boolean Whether the event normally bubbles or not.
cancelable Lecture seule Boolean Whether the event is cancellable or not.

Exemple

js

var transaction = db.transaction(["customers"], IDBTransaction.versionchange);

transaction.oncomplete = function( event ) {
  ...
}

// qui est équivalent à
transaction.addEventListener("complete", function( event ) {
  ...
});

Voir aussi