How to Check Cookie Enabled in Javascript

How to check Cookie is enabled or not in JavaScript

The below JavaScript code will check whether the browser is cookie enabled or not. Here the value of navigator.cookieEnabled is equal to 0 shows that the cookie is disabled else cookie is enabled.

if (navigator.cookieEnabled == 0) {
alert("You need to enable cookies for this site to load properly!");
}



Related Topic Check/Detect Cookie Enabled
Javascript Spell Checker Embedded Code, Text Area Object
PHP Programming Best Practices
Facebook Graph API Class Integration
How to Check Cookie Enabled in PHP

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback