Events — Web platform APIs
Handle events and interactions. Listen for and respond to various events, including custom events, errors, progress, and promise rejections.
addEventListener— Registers an event listener in the global scope, which will be called synchronously whenever the event `type` is dispatched.AddEventListenerOptions— Options for configuring an event listener via `addEventListener`.CustomEventCustomEventInitdispatchEvent— Dispatches an event in the global scope, synchronously invoking any registered event listeners for this event in the appropriate order. Returns false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault(). Otherwise it returns true.ErrorEventErrorEventInitEvent— An event which takes place in the DOM.EventInitEventListenerEventListenerObject— The `EventListenerObject` interface represents an object that can handle events dispatched by an `EventTarget` object.EventListenerOptionsEventListenerOrEventListenerObjectEventTarget— EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.MessageEventMessageEventInitMessageEventSourceonbeforeunload— Before unload event handler for the window. In Ende, this is primarily for API compatibility with browsers.onerror— Error event handler for the window. Triggered when an uncaught error occurs in the global scope.onload— Load event handler for the window. In Ende, this is primarily for API compatibility with browsers.onunhandledrejection— Event handler for unhandled promise rejections. Triggered when a `Promise` is rejected and no rejection handler is attached to it.onunload— Unload event handler for the window. In Ende, this is primarily for API compatibility with browsers.ProgressEvent— Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).ProgressEventInitPromiseRejectionEventPromiseRejectionEventInitremoveEventListener— Remove a previously registered event listener from the global scopeTransferable