Check if cookies are enabled $(document).ready(function() { var dt = new Date(); dt.setSeconds(dt.getSeconds() + 60); document.cookie = “cookietest=1; expires=” + dt.toGMTString(); var cookiesEnabled = document.cookie.indexOf(“cookietest=”) != -1; if(!cookiesEnabled){ //cookies are […] Check if cookies are enabled $(document).ready(function() { var dt = new Date(); dt.setSeconds(dt.getSeconds() +
![Some Useful JavaScript & jQuery Snippets – Part 2 | Codrops](https://cdn-ak-scissors.b.st-hatena.com/image/square/68c2ed9d24ebc00051c5c4389001072721c410e8/height=288;version=1;width=512/https%3A%2F%2Fcodrops-1f606.kxcdn.com%2Fcodrops%2Fwp-content%2Fuploads%2F2010%2F01%2Fsnippets_part2.png%3Fx65614)