JavaScript Window Navigator The window.navigator object contains information about the visitor's browser. Window Navigator The window.navigator object can be written without the window prefix. Some examples: navigator.appName navigator.appCodeName navigator.platform Navigator Cookie Enabled The property cookieEnabled returns true if cookies are enabled, otherwise false: Example < p id= "demo" > < /p > < script > document.getElementById("demo").innerHTML = "Cookies Enabled is " + navigator.cookieEnabled; < /script > The Browser Names The properties appName and appCodeName return the name of the browser: Example < p id= "demo" > < /p > < script > document.getElementById("demo").innerHTML = "Name is " + navigator.appName + ". Code name is " + navigator.appCodeName; < /script > Did you know? IE11, Chrome,
We are building a knowledge place for new programmers. We focused on providing relevant information in a way that helps and grow knowledge of the reader’s