Navigator Object
suggest changeSyntax
- var userAgent = navigator.userAgent; /* It can simply be assigned to a variable */
Remarks
- The
Navigatorobject is specified in the HTML standard. Current browsers provide it. navigator.productis not a reliable engine name. In most current browsers it returnsGecko. It was missing in old Internet Explorer.navigator.geolocationwas added in Internet Explorer 9. Current browsers expose it only in a secure context.navigator.appCodeNamereturns the stringMozilla. It is not the browser’s name.navigator.userAgentis not a reliable browser identifier either.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents