Navigator
window.navigator
or navigator
is a read-only property and contains different methods and functions related to the browser.
Let's look at a few examples of navigation.
navigator.appName: It gives the name of the browser application
Note: "Netscape" is the application name for IE11, Chrome, Firefox, and Safari.
navigator.cookieEnabled: Returns a boolean value based on the cookie value in the browser.
navigator.platform: Provides information about the browser operating system.
Last updated
Was this helpful?