JavaScript Runtime APIs - AddEventListener
How it works
Section titled How it worksThe addEventListener function defines the trigger for the execution of JavaScript code to receive the request data. The event listener type is fetch
and gets the fetchEvent
Syntax
Section titled SyntaxProperties
Section titled Properties-
type:
string
- the supported type isfetch
. -
listener:
function
- the function that handles incoming Azion Cells events.
Example
Section titled ExampleFor more information on addEventListener visit MDN Web Docs.
Contributors