Check whether cookie is enabled or not?

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 126
Write below code:-
Using navigator.cookieEnabled property ,we can check whether cookie is enabled or not on browsers.
function CheckCookie() 
{
alert("Cookies enabled is " + navigator.cookieEnabled);
}

Comments or Responses

Login to post response