JavaScript Reference/Javascript Properties/cookieEnabled

Материал из Web эксперт
Перейти к: навигация, поиск

"cookieEnabled" Example

    
<html>
<body>
<button onClick="alert(navigator.cookieEnabled);">Are Cookies Enabled</button>
</body>
</html>



"cookieEnabled" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |clientInformation               navigator                     |
+----------------+--------------------------------------------------------------+



"cookieEnabled" Possible Values

Possible Values
true 
false.



"cookieEnabled" Syntax and Note

Note:
Read-only property. 
Are cookies enabled. 
    
Syntax:
    
objectName.cookieEnabled