Freelancer: moizpalitan
Chia sẻ:
Báo cáo bài thi

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");

Bài tham dự cuộc thi #14 cho                                                 Script to Check If Browser Accept 3rd Party Cookie
Bài tham dự #14

Bảng thông báo công khai

  • moizpalitan
    moizpalitan
    • cách đây 10 năm

    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.

    • cách đây 10 năm