Skip to main content

browser
interface

Provides access to specific browser methods that asynchronously execute in the top frame (cookie, localStorage, sessionStorage)

This object replaces the native document.cookie API and provides a setter/getter to set cookies on the top frame.

(url: string, body?: string) => Promise<boolean>
Deprecated

The navigator.sendBeacon() method asynchronously sends an HTTP POST request containing a small amount of data to a web server. Please use the standard web fetch api with the option keepalive: true to achieve this functionality.

Was this section helpful?

Accessing Standard Api