A counter using SSI and JavaScript


This page includes a counter using SSI, and made available to JavaScript.
The count is:
Press button for an alert with the count.

 

  • Source

    <HTML>
    <HEAD>
    <TITLE>Counter Test in JavaScript and SSI</TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!--#exec cgi="count.cgi"-->
    </SCRIPT>
    </HEAD>
    <BODY>
    <H1>A counter using SSI and JavaScript</H1>
    <HR>
    This page includes a counter using SSI, and made available to JavaScript.
    <HR>
    The count is:
    <SCRIPT LANGUAGE="JavaScript">
    document.write(count);
    </SCRIPT>
    <HR>
    Press button for an alert with the count.
    <FORM NAME="form1">
    <INPUT TYPE="BUTTON" VALUE="Click for Count"
     onClick="window.alert('The count is' + count);">
    </FORM>
    <HR>
    </BODY>
    </HTML>