Traducción en curso

The success handler is executed when a request succeed.

Informacion General

Specification
IndexedDB
Interface
Evento
Bubbles
No
Cancelable
No
Target
IDBFactory, IDBRequest
Accion por Default
None

Properties

Propiedad Tipo Descripcion
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString El tipo de evento.
bubbles Read only Boolean Whether the event normally bubbles or not.
cancelable Read only Boolean Whether the event is cancellable or not.

Example

var request = indexedDB.open("addressbook", 3);

// using the onsuccess handler to access a database, once open
request.onsuccess = function( event ) {
  var addressbookDB = event.target.result;

}

// which is equivalent to
request.addEventListener("success", function( event ) {
  var addressbookDB = event.target.result;

});

See also

Etiquetas y colaboradores del documento

Colaboradores en esta página: DeipMartin
Última actualización por: DeipMartin,