<script > function are_cookies_enabled() { var cookieEnabled = (navigator.cookieEnabled) ? true : false; if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) { document.cookie="testcookie"; cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false; } return (cookieEnabled); } var result= are_cookies_enabled(); alert(result); </script>
Thursday, 31 July 2014
Checking if Cookies are Enabled in Browser
Subscribe to:
Posts (Atom)