cookieEnabled property (clientInformation, navigator)
Retrieves a Boolean value that indicates whether cookies are enabled in the browser.
If cookies are enabled, you can use the cookie property to set or retrieve the cookies stored for the current document. For a detailed description about cookies, see the page for the cookie property.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Boolean, one of the following values:
|Cookies are disabled.|
|Cookies are enabled.|
Default: this property has no default value.
Example HTML code 1:
This example shows how to create, modify and remove cookies:
Did you find this example helpful?
User Contributed Comments