JavaScript Navigator Object

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • var userAgent = navigator.userAgent; /* It can simply be assigned to a variable */

Remarks

  1. There is no public standard for the Navigator object, however, all major browsers support it.

  2. The navigator.product property cannot be considered a reliable way to get the browser's engine name since most browsers it will return Gecko. Additionally, it is not supported in:

    • Internet Explorer 10 and below
    • Opera 12 and greater
  3. In Internet Explorer, the navigator.geolocation property is not supported in versions older than IE 8

  4. The navigator.appCodeName property returns Mozilla for all modern browsers.



Got any JavaScript Question?