Navigator Object
suggest changeSyntax
- var userAgent = navigator.userAgent; /* It can simply be assigned to a variable */
Remarks
- There is no public standard for the
Navigatorobject, however, all major browsers support it. - The
navigator.productproperty cannot be considered a reliable way to get the browser’s engine name since most browsers it will returnGecko. Additionally, it is not supported in:
- Internet Explorer 10 and below
- Opera 12 and greater
- In Internet Explorer, the
navigator.geolocationproperty is not supported in versions older than IE 8 - The
navigator.appCodeNameproperty returnsMozillafor all modern browsers.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents