Navigator cookieEnabledProperty
Navigator Object
Definition and Usage
The cookieEnabled property returns a Boolean value. If the browser has cookies enabled, this property is true. If cookies are disabled, the value is false.
Syntax
navigator.cookieEnabled
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the cookieEnabled property
Example
Example
Determine whether the browser has cookies enabled:
<script>
document.write("Cookies enabled: " + navigator.cookieEnabled);
</script>
document.write("Cookies enabled: " + navigator.cookieEnabled);
</script>
The above example outputs:
Try it yourself »
More Examples
This example contains all of the navigator properties.
Navigator Object Other Extensions