이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
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");