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

Event.createEvent()

I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Registrati per tradurlo tu.

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

Tag del documento e collaboratori

Tag: 
 Hanno collaborato alla realizzazione di questa pagina: fscholz, teoli, kscarfone, Cobra, Sheppy, Matej Lednar
 Ultima modifica di: fscholz,