Navigator cookieEnabled Property
Navigator object
Definition and Usage
The cookieEnabled property returns a Boolean value: if the browser has cookies enabled, the property value 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:
The output of the above example is:
Try it »
More examples
This example contains all navigator properties.
Navigator object