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()

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

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

ドキュメントのタグと貢献者

タグ: 
 このページの貢献者: fscholz, teoli, kscarfone, Cobra, Sheppy, Matej Lednar
 最終更新者: fscholz,