docs.rodeo

MDN Web Docs mirror

CustomEvent

{{APIRef("DOM")}} {{AvailableInWorkers}} 

The CustomEvent interface represents events initialized by an application for any purpose.

[!NOTE] If used to attempt to communicate between a web extension content script and a web page script, a non-string detail property throws with “Permission denied to access property” in Firefox. To avoid this issue clone the object. See Share objects with page scripts for more information.

{{InheritanceDiagram}} 

Constructor

Instance properties

This interface inherits properties from its parent, {{domxref("Event")}} .

Instance methods

This interface inherits methods from its parent, {{domxref("Event")}} .

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN