Name

WorkerNavigator — browser information for workers

Synopsis

The navigator property of a WorkerGlobalScope refers to a WorkerNavigator object that is a simplified version of the Navigator object of a Window.

Properties

Each of these properties has the same meaning that it does in the Navigator object.

readonly string appName

See the appName property of Navigator.

readonly string appVersion

See the appVersions property of Navigator.

readonly boolean onLine

true if the browser is online and false if it is not.

readonly string platform

A string that identifies the operating system and/or hardware platform on which the browser is running.

readonly string userAgent

The value the browser uses for the user-agent header in HTTP requests.

Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.