Archive

Here you can browse through all articles, tutorials, roundups, and experiments on Codrops.

Some Useful JavaScript & jQuery Snippets – Part 2

In Playground by

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 […]