Saber2pr's Blog

NavigatorObject

Allow the script to query it and register yourself for some activities. Common properties and methods:

1. Navigator.cookieEnabled

Cookie available status.

2. Navigator.geolocation

Access the geolocation information of the device.

3. Navigator.language

The language of the browser user interface.

4. Navigator.onLine

Whether the browser is connected to the Internet.

5. Navigator.serviceWorker

Get pwa services.

6. Navigator.share

Web sharing. (valid on mobile)