Event.createEvent()
Crea un nuevo evento, que debe ser inicializado llamando a su método init()
.
Sintaxis
Ejemplo
js
var nuevoEvento = document.createEvent("UIEvents");
Especificaciones
Specification |
---|
DOM # dom-document-createevent |
Compatibilidad del Navegador
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
createEvent |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.