Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Partner With Us
Phone Cards
Corporate Awards
Server Racks
Free Business Cards
Televisions
Memory
Promotional Products
Calling Cards
Imprinted Gifts
Car Donations
Promote Your Website
Prepaid Phone Card
IT Legal Contracts
Logo Design

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This cookies records how many times the visitor has visited the page and writes to the page accordingly.


Notes

  • Posted: July 01, 1997

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: visits.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

4. From: my_girl23
02/22/2008 03:02:22

the code is okay..works on my website but the problem is it counts every hit i made on each menu/page on my website.

2. From: stijn
nice, but ...
11/02/2007 09:02:37

it's a nice code, but when i tested it, it started whit 42
and when i reloaded my page, it became 44, 46, 48, ...

3. From: Lee (Admin)
11/07/2007 15:56:56

Not sure of the problem. It worked for me in IE and FF. Due to the limitations of these comments, if you continue to have problems you will need to submit your question to the JavaScript Forum for further help.

1. From: Hussan
12/17/2006 14:53:16

the script is good but it dos not tell the name of visitor


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.