Subscribe
Tutorial search

JavaScript Cookies Tutorials


We hope that you will enjoy our JavaScript Cookies tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own JavaScript Cookies tutorial to our site. Thank you !

Sort by:
JavaScript Cookies
JavaScript Cookies
Covers basic usage of cookies in JavaScript. Includes reading, setting, and deleting.
Difficulty:
Javascript Cookies Tutorial
Javascript Cookies Tutorial
It is very common for a website to use cookies. Cookies are a small snippet of data that is stored on the client"™s machine. Cookies can store anything from user information to session data. You will learn how to create, retrieve, display and delete cookies using javascript.
Difficulty:
Simple YUI Cookie example - javascript text magnifier for your page
Simple YUI Cookie example - javascript text magnifier for your page
The piece of code we will be writing, using the YUI library (my favorite), will allow users to increase/decrease their font size for a block of text, storing the font size in a cookie so that when they return to the page they don't have to modify the font size again.
Difficulty:
User Name Cookie
User Name Cookie
User Name Cookie
Difficulty:
ID Tracker
ID Tracker
ID Tracker
Difficulty:
Only Popup Once
Only Popup Once
Only Popup Once
Difficulty:
Name - Visits - Last Visit
Name - Visits - Last Visit
Name - Visits - Last Visit
Difficulty:
Favorite Background Cookie
Favorite Background Cookie
Favorite Background Cookie
Difficulty:
Name - Browser Info
Name - Browser Info
Name - Browser Info
Difficulty:
Automatic Refresh
Automatic Refresh
Ever wonder how web sites could say, "This page will refresh after every 60 seconds." Without having the surfer press refresh? Well, the answer is in Javascript!
Difficulty:
Session-only cookies
Session-only cookies
Session-only cookies
Difficulty:
Cookies
Cookies
Cookies
Difficulty:
Cookies
Cookies
A cookie is a way you can store some information about a user visiting your site. The information is stored on the individuals computer, and thus you do not need any extra server space to customize a page for any amount of users you may have. To use Cookies there are two things you need to do, one is set the cookie, and the other is retrieve a cookie you have already set. Here's a brief tutorial on how to use cookies, and a couple of ideas which you can use cookies for.
Difficulty:
Determine if Cookies Are Enabled
Determine if Cookies Are Enabled
Use a few simple lines of JavaScript to verify if cookies are accepted by the target web browser.
Difficulty:
Determining cookie support in client's browser
Determining cookie support in client's browser
If your script relies on JavaScript cookies to store and persist information, it's a good idea to always make sure the user's browser has cookies enabled first. This tutorial shows you how to perform this detection.
Difficulty:
Total Tutorials in Category: 17