Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Event.createEvent()

Nuestros voluntarios aún no han traducido este artículo al Español. Únete a nosotros y ayúdanos a traducirlo

Creates a new event, which must then be initialized by calling its init() method.

Syntax

document.createEvent(type) 
type
A string indicating the event type to create.

This method returns a new DOM Event object of the specified type, which must be initialized before use.

Example

var newEvent = document.createEvent("UIEvents");

Specification

Etiquetas y colaboradores del documento

Etiquetas: 
 Colaboradores en esta página: fscholz, teoli, kscarfone, Cobra, Sheppy, Matej Lednar
 Última actualización por: fscholz,