Category: cookies

An Overview of Client-Side Storage

Ire Aderinokun:There are currently four active methods for storing data on the client side.Cookies (old school, still useful because they are sent with server requests) Local Storage (very easy to use) Session Storage (exactly the same, only clears when the tab is closed) IndexedDB (quite complex, quite powerful) ...

Quick-Tip: Show Modal Popup after Time Delay

In the following quick tip, I’m going to show you how to open a modal window on a web page after a short time deay. This might be useful to highlight a particular call to action, such as signing up for a newsletter or for getting likes on Facebook. Some sites also use this technique to display advertising. But be...

Build a Countdown Timer in Just 18 Lines of JavaScript

Sometimes in life, you’re going to need a JavaScript countdown clock for something other than a doomsday device. Whether you have an event, a sale, a promotion, or a game, you can benefit from building a clock in raw JavaScript rather than reaching for the nearest plugin. While there are many great clock plugins, h...