Firefox Tomorrow

web api instance method

StorageAccessHandle: BroadcastChannel() method

View on MDN ↗

[!NOTE] See BroadcastChannel() to understand usage.

Syntax

BroadcastChannel(channelName)

Parameters

Return value

An unpartitioned BroadcastChannel object.

Exceptions

  • SecurityError DomException
    • : Thrown if access was not granted.

See BroadcastChannel()

Examples

document.requestStorageAccess({ BroadcastChannel: true }).then(
  (handle) => {
    console.log("BroadcastChannel access granted");
    handle.BroadcastChannel(channel_name);
  },
  () => {
    console.log("BroadcastChannel access denied");
  },
);

[!NOTE] See Using the Storage Access API for a more complete example.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also