The document.createEvent
API is being deprecated. It allowed for native browser event creation using using the string names of those events. The now recommended way is to use event constructors instead.
i.e. createEvent("HtmlEvents")
has now become new HtmlEvent()
.
Is it possible to create these events with an event constructor using strings? i.e. new CustomEvent("HtmlEvents")
?