91-9990449935 0120-4256464 |
JavaScript Navigator ObjectThe JavaScript navigator object is used for browser detection. It can be used to get browser information such as appName, appCodeName, userAgent etc. The navigator object is the window property, so it can be accessed by: Or, Property of JavaScript navigator objectThere are many properties of navigator object that returns information of the browser.
Methods of JavaScript navigator objectThe methods of navigator object are given below.
Example of navigator objectLet’s see the different usage of history object. Test it Nownavigator.appCodeName: Mozilla navigator.appName: Netscape navigator.appVersion: 5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36 navigator.cookieEnabled: true navigator.language: en-US navigator.userAgent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36 navigator.platform: Win32 navigator.onLine: true
Next TopicJavaScript Screen Object
|