HTML DOM Navigator cookieEnabled Property Last Updated : 14 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The cookieEnabled property is used to return a Boolean value which specifies whether the browser has cookies enabled or not. It returns true if cookies are enabled else it returns false. Syntax: navigator.cookieEnabled Below program illustrates the Navigator cookieEnabled Property: Checking whether the browser has cookies enabled or not. HTML <!DOCTYPE html> <html> <head> <title> Navigator cookieEnabled Property in HTML </title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Navigator cookieEnabled Property</h2> <p> For checking whether cookies are enabled in the browser, double click the "Check Cookies" button: </p> <button ondblclick="checkcookies()">Check Cookies</button> <p id="check"></p> <script> function checkcookies() { var c = "Are cookies enabled : " + navigator.cookieEnabled; document.getElementById("check").innerHTML = c; } </script> </body> </html> Output: Before clicking the button: After clicking the button: Supported Web Browsers Google Chrome 1Edge 12Internet Explorer 4Firefox 1Opera 12.1Safari 1 Comment More infoAdvertise with us Next Article HTML DOM Navigator cookieEnabled Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-Property Similar Reads HTML DOM Navigator appCodeName Property The Navigator appCodeName Property is used for returning the code name of the browser. It is a read-only property and generally, all modern browsers return "Mozilla". Syntax: navigator.appCodeName Return values: Returns a string that represents the code name of the browser. Below program illustrates 1 min read HTML DOM Navigator appName Property Navigator appName Property: It is used for returning the name of the browser.It is a read-only property and the values returned by it varies from browsers to browsers.it returns a string which represents the name of the browser.It returns "Netscape" for IE11, Firefox, Chrome, and Safari whereas, for 1 min read HTML DOM Navigator appVersion Property The Navigator appVersion Property is a read-only property and it returns a string which represents the version information of the browser. It is used for returning the information related to the version of the browser. Syntax: navigator.appVersion Note: This property has been deprecated and is no lo 1 min read HTML DOM cookie Property Almost every website stores cookies (small text files) on the user's computer for recognition and to keep track of his preferences. DOM cookie property sets or gets all the key/value pairs of cookies associated with the current document.Getting all the Cookies:Â The document.cookie method returns a s 3 min read HTML DOM Navigator onLine Property The Navigator onLine property is used for returning a Boolean value which specifies whether a browser is in the online or offline mode. It is a read-only property which returns true if the browser is in online mode or false if it is in the offline mode. Syntax: navigator.onLineReturn Value: A Boolea 2 min read Like