line
Inserting an access counter
line

If your provider offers a CGI program for an access counter, you can display the number of times your Web page has been visited.

Related HTML tags <IMG SRC= >


Note Note Before doing this task, check that your provider offers the access counter service as well as guidelines for specifying it in the HTML file. The guideline might state, for example:
Specify <IMAGE src="/cgi-bin/counter.cgi?id=hpb&n=1"> in the HTML source.
(The text surrounded by " " differs depending on the providers.) If there is no such guideline, or if anything is unclear, ask your provider.


Vocabulary Vocabulary CGI program, written in Perl or C language

A program written for exchanging data between a client and a server. It is often used when a server receives information--for example, questionnaires or orders--entered in a Web browser, and then processes it.


  1. Open a Web page (typically, the top page) where you want to insert an access counter.

  2. Position the cursor on the location where you want to insert an access counter. Click the Insert Image icon icon to display the Open dialog box.

  3. Click the Cancel button to display the Image dialog box.

  4. Read the guideline provided by the provider and find the text <IMG src="...">. Type the text enclosed by " " of <IMG src="..."> in the Image dialog box. For example, if the guideline states:
    Specify <IMAGE src="/cgi-bin/counter.cgi?id=hpb&n=1"> in the HTML source
    type
    /cgi-bin/counter.cgi?id=hpb&n=1

    Insert Image dialog

  5. Click the OK button to insert the access counter. In the editor, the mark Incorrect image icon is displayed.

  6. After you upload your Web page that contains the access counter to the provider's server, you can actually view the counter as shown in the following figure. (The image that contains the number is the access counter. You cannot view it until you upload your Web page to the provider's server.)

    Access counter