Javascript Reference
Categories: navigator

javascript navigator cookieEnabled

@March 15, 2008, 1:22 a.m.
cookieEnabledFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM n/a  

Read-only  

Returns whether the browser allows reading and writing of cookie data.

 
Example
 
if (cookieEnabled) {
    setCookieData(data);
}
 
Value

Boolean value: true | false.

 
Default

Depends on browser preference setting.


Powered by Linode.