Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Client

Client

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨April 2018⁩.

Note: This feature is only available inService Workers.

TheClient interface represents an executable context such as aWorker, or aSharedWorker.Window clients are represented by the more-specificWindowClient. You can getClient/WindowClient objects from methods such asClients.matchAll() andClients.get().

Instance methods

Client.postMessage()

Sends a message to the client.

Instance properties

Client.frameTypeRead only

The client's frame type as a string. It can be"auxiliary","top-level","nested", or"none".

Client.idRead only

The universally unique identifier of the client as a string.

Client.typeRead only

The client's type as a string. It can be"window","worker", or"sharedworker".

Client.urlRead only

The URL of the client as a string.

Specifications

Specification
Service Workers Nightly
# client-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp