counter

What is counter

Putting a counter on a web page can help you track how many people visit it. There are several ways to go about putting a counter on your page, either by adding a pre-built one or creating your own.

How to create a counter

How to develop or create a counter on your web page or app.

If you want to create a counter with X-Server, you do not need to develop any work at the server-side. Just do it with client-side script only in HTML .

Below are complete HTML codes that offer sample counter function, which you can use as a guide to creating a counter.

Complete codes of a counter

Complete HTML codes with JavaScript

import

Above codes can also be written as follow:

Another Method: Complete HTML codes with TuringLanguage

import, class:"TML"

Run

Total of readers or visitors: 1
Total of people who liked: 0

Refresh

Total of readers or visitors: 2
Total of people who liked: 0

Refresh second time

Total of readers or visitors: 3
Total of people who liked: 0

Usage Case

The effect of above codes case is at the bottom of this page. There is two counters like and at the bottom of this page.

Last updated