« Gecko DOM Reference
Summary
Returns a boolean value indicating whether cookies are enabled or not (read-only).
Syntax
var cookieEnabled = navigator.cookieEnabled;
-
cookieEnabled is a boolean true or false.
Example
if (!navigator.cookieEnabled) {
// let the user know that enabling cookies makes the web page much more useful
}
Notes
Due to
bug 230350
, cookieEnabled may return the wrong result in Gecko-based applications.
Specification
DOM Level 0. Not part of any standard.