• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. Client
  4. Client.id
  • Change language

Table of contents

  • Syntax
  • Example
  • Specifications
  • Browser compatibility

Client.id

The id read-only property of the Client interface returns the universally unique identifier of the Client object.

Syntax

var clientId = client.id;

Example

TBD

Specifications

Specification Status Comment
Service Workers
The definition of 'id' in that specification.
Working Draft Initial definition.

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 8, 2021, by MDN contributors

Change your language

Related Topics

  1. Service Worker API
  2. Client
  3. Properties
    1. This is an experimental API that should not be used in production code. frameType
    2. This is an experimental API that should not be used in production code. id
    3. type
    4. This is an experimental API that should not be used in production code. url
  4. Methods
    1. This is an experimental API that should not be used in production code. postMessage()
  5. Related pages for Service Workers API
    1. Cache
    2. CacheStorage
    3. Clients
    4. ExtendableEvent
    5. FetchEvent
    6. InstallEvent
    7. Navigator.serviceWorker
    8. NotificationEvent
    9. PeriodicSyncEvent
    10. PeriodicSyncManager
    11. PeriodicSyncRegistration
    12. ServiceWorker
    13. ServiceWorkerContainer
    14. ServiceWorkerGlobalScope
    15. ServiceWorkerRegistration
    16. SyncEvent
    17. SyncManager
    18. SyncRegistration
    19. WindowClient
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies