Web Analytics Made Easy -
StatCounter How can i make a Counter in Java Script? - CodingForum

Announcement

Collapse
No announcement yet.

How can i make a Counter in Java Script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can i make a Counter in Java Script?

    How can i make a Counter in Java Script?
    But i need a counter who uses the minimal resurces!
    Thx!

  • #2
    You can't do one with javascript. You need a serverside language.

    Comment


    • #3
      wrong language you are trying to use for counter. Try use php, jsp, or asp because they are server side language. JavaScript is client side.

      I use php, just create a cookie when visitor visit you site, use cookie as a flag.

      If visitor contains your counter cookie, then do nothing
      If user doesn't contain your counter cookie, then add 1 to your counter and create a cookie.

      I don't think you can use JavaScript to do counter, but not 100% sure.

      Comment


      • #4
        Before we bash DJAISI for wanting to use Javascript, first we should find out is wanting to be counted!

        So, DJAISI, what are you trying to count?

        Sadiq.

        Comment

        Working...
        X