Translate

Image of Operating System Concepts
Image of Linux Kernel Development (3rd Edition)
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)
Image of Modern Operating Systems (3rd Edition)

Persistent JavaScript Webpage Hit Counter

Recently I wanted to add a simple web page persistent hit counter to one of my websites. You have all seen such counters; there are a bazillion styles and sizes available on the Internet for free. Rather than use one of the external hit counter services such as hitwebcounter or free-counters or use a PHP and HTTP cookies solution, I decided to use JavaScript and XMLHTTPRequest to retrieve an incrementing counter on the website hosting platform and display it in a vcounter div element. XMLHttpRequest is a JavaScript object which provides the basis mechanism for AJAX (Asynchronous JavaScript and XML)