Freelancer: moizpalitan
Compartir:
Reportar entrada

Cookie Check

Declaring a COOKIES variable to check if cookies are enabled in the browser. The var COOKIES will be available in the whole page. Even in the body section. 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); } COOKIES=are_cookies_enabled(); document.write(COOKIES); document.write(""); document.write(COOKIES?"Cookie is enabled":"Cookie is not enabled");

Participación en el concurso Nro.14 para                                                 Script to Check If Browser Accept 3rd Party Cookie
Participación Nro. 14

Tablero de aclaración pública

  • moizpalitan
    moizpalitan
    • 10 años atrás

    I tried to give you the code in the description but freelancer.com has stripped all the tags!
    Contact me if you want the file.

    • 10 años atrás