The navigator object contains state and identity information about the browser/user agent.
- Returns the internal “code” name of the current browser. Do not rely on this property to return the correct value.
- Retrieves the userAgent application’s minor version value.
- appName Returns a string with the name of the browser/user agent. The HTML5 specification also allows any browser to return “Netscape” here, for compatibility reasons.
- Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return “4.0” here, for compatibility reasons.
Retrieves whether client-side persistent cookies are enabled. Persistent cookies are those that are stored on the client-side computer.
Returns the user’s do-not-track setting. This is “yes” if the user has requested not to be tracked by web sites, content, or advertising.
The maximum number of simultaneous touch contacts supported by the device.
Retrieves the name of the user’s operating system.
In IE10 and higher and WaterFox browsers this will return the bitness of the current tab. eg
Win32 or Win64.
Indicates if the browser will fire pointer events for pointing input.
In late 2013, pointerEnabled was removed from the specification as checking PointerEvent in Window object is sufficient for feature detection. Do not use this property and use PointerEvent instead.
Retrieves the operating system’s natural language setting.
This property reflects the setting in the "Your locale (location)" box in the Regional Options of Control Panel—for example, "English (United States).
- Retrieves a snapshot of the data for the currently connected and interacted-with gamepads. Returns a Gamepad object.
- Prompts the user for permission to use a media device such as a camera or microphone. If the user provides permission, the
successCallbackis invoked on the calling application with a LocalMediaStream object as its argument.
- This method indicates whether the current browser is Java Run Time Environment-enabled or not.
- Asynchronously queues small amounts of HTTP data for transfer from the user agent to a web server. For example, it can be used to send analytics or diagnostics code without delaying the page’s unload or affecting the performance of the navigation.
[object Navigator] example enumerates the window.navigator object and displays the results in the web page.
Commonly used for feature detection of a web browser capabilities. java RTE and cookie support.
Avoid UserAgent sniffing of the navigator.userAgent property as this is not a reliable indicator of the userAgent’s actual version number.