JavaScript Reference/Javascript Properties/cookieEnabled

Материал из Web эксперт
Версия от 11:21, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"cookieEnabled" Example

   <source lang="javascript">
   

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


     </source>
   
  


"cookieEnabled" is applied to

   <source lang="javascript">

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

     </source>
   
  


"cookieEnabled" Possible Values

   <source lang="javascript">

Possible Values true false.


     </source>
   
  


"cookieEnabled" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Are cookies enabled.

Syntax:

objectName.cookieEnabled


     </source>