WindowClient
The WindowClient
interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
Properties
Functions
The focus()
method of the WindowClient interface gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient.
The focus()
method of the WindowClient interface gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient.
The navigate()
method of the WindowClient interface loads a specified URL into a controlled client page then returns a Promise that resolves to the existing WindowClient.
The navigate()
method of the WindowClient interface loads a specified URL into a controlled client page then returns a Promise that resolves to the existing WindowClient.
The postMessage()
method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).