checking the browser cookie enable

all the browser checking the cookie is enable or not

var cookieEnabled = (navigator.cookieEnabled) ? true : false;
 
if( cookieEnabled == false){
    document.write('Cookies are disabled.Enable it.' );
 
}else{
 
 document.write('Cookies are enable.' );
}

Leave a Reply

Your email address will not be published. Required fields are marked *