The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe delete() method of the CookieStore interface deletes a cookie that matches the given name or options object.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The get() method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given name or options object.
Optionaloptions: CookieStoreGetOptionsThe getAll() method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the name or options passed to it.
Optionaloptions: CookieStoreGetOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe set() method of the CookieStore interface sets a cookie with the given name and value or options object.
The
CookieStoreinterface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. Available only in secure contexts.MDN Reference