Javascript Check if Cookies are Enabled
Cookies are small pieces of data that websites store in your browser to remember your preferences, login details, or other information. In this tutorial, we'll show you how to use the `navigator.cookieEnabled` property in JavaScript to detect if cookies are enabled.
written
reviewed
updated
Thanks for your feedback!
Your contributions will help us to improve service.
How to Check if Cookies are Enabled?
In this Example, we will learn how to use JavaScript to check if cookies are enabled. We can use the navigator.cookie Enabled property, which returns a boolean value indicating whether cookies are enabled or not. If the value is true, cookies are enabled; if false, cookies are disabled.
Output of Check if Cookies are Enabled Javascript
Ad