Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Determine if cookies are turned off


Method 1 -----------------------------
Check the navigator.cookieEnabled property

Method 2 ----------------------------
Attempt to write a cookie and then re - read it.
Warning :   if the allowed space for the cookie is full, writing a cookie will
cause the least recent cookie to be deleted