cookieが有効か無効かの判定の際に、IEとEdgeだけうまくいかなかったので対処法のメモになります。自分用ですが誰かの役に立てば幸いです。 IEおよびEdge以外 「cookie javasicrpt 無効 判定」などでググると"navigator.cookieEnabled"による判定の記事をよく目にします。しかしChrome、Firefox、Safariは判定できるのですが、IEとEdgeはcookieをブロックにしても"true"が返ってきてしまいました。 var setCookie = function(cookieName, value){ var cookie = cookieName + "=" + value + ";"; document.cookie = cookie; } var getCookie = function(cookieName){ var l =