Let users know <<as individuals>>, how many times they have been to your site.
Cookies JavaScript Code Snippets
These snippets all create JavaScript Cookies. Cookies are small bits of information such as a name, a date, an order, etc. JavaScripts can set cookies on a user’s hard drive and retrieve them later, when needed.
This Cookie Counts The Number Of Times A Browser Has Been To your Page
This script will save all of your form fields in a cookie. It includes all text fields, radio button selections, checkbox values, etc. When your visitor returns, all form fields are automatically repopulated with the same value that they entered on their last visit.
This search box is a small compact search engine give your visitors something to come back for.
This is a pop up window that says how often the user has been
Type whatever you like in the boxes, click outside the box, reload the page, and try to type the details again. This script uses cookies, so if you have them disabled it will of course not work.
Catches all clicks on ads and writes a cookie on the visitor’s computer. Until the cookie expires, no ads are shown. Cool!
Displays everything: Name, date, # of visits, OS, browsers… you name it!
If you have a popup window which opens on your home page every time a visitor returns, it can become very annoying. Using cookies, this script can determine if the visitor has been here before, and only open a new window on their first visit to the page. The next time they come back, the script will read the cookie, identify them as a repeat visitor, and not open the window again.
use cookie to store password
Use this cookie to show your visitors what’s new on your Web site since their last visit.
“A Notepad that will “”Take a note”” and display it when visitor visits site next time. Perfect for start pages. (Hey! Try this: Add some notes, restart computer, then restart script!)”
Gets user name and remembers it!
Want a cool cookie script, but hate pop-up prompt boxes? Here’s your solution! This professional looking, highly customizable script saves the value of an input box. It can be used in many ways and it’s all annotated in the script, so you can easily see how it works. If you like it, nominate it! It’s my first script!
Puts the users name #of visits and Last Visit on your web site!