This is a discussion on "JavaScript Hit counter" within the JavaScript Forum section. This forum, and the thread "JavaScript Hit counter are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
JavaScript Hit counter
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
JavaScript Hit counter
Hi Everybody!!!
I m new on this site & also new in web programming .. |
|
|
|
#2
|
|||
|
|||
|
Hi Reeno!
Welcome to the forums. Ok, I'll tell you now that it's impossible to make a Javascript hit counter. The reason is this: Javascript runs only in the browser of the person visiting your site. It can only make changes on the visitor's computer. So while it's possible to count how many times you, personally, have visited the site it's not possible to count how many times ANYONE has seen the site as javascript has no way of accessing the server on which your site is stored. If you want to make your own hitcounter then I would suggest using a backend technology such as ASP, PHP, CGI. If you're not into that(you did say you were new to web programming!) there are many free hitcounters all over the net. A quick search on google: Gives you this With this item most appropriate |
|
#3
|
|||
|
|||
|
Just a little advice on hit counters...
Yes Sirkent is correct about Javascript, but... Make sure that you get your Counter from a site that you know is used a lot, cause lately most free counter sites have been cancelling this service. So.. get a good one, not someone who's site looks like they barely can do anything other than that, cause you will have to start over very soon. thats it. |
|
#4
|
|||
|
|||
|
Hey!! Sirkent & kulegamr
Well first of all thnx to both of u to reply to my topic.Well u both says tht it is impossible to make a hit counter in javascript. Actually i got assignment to make tht hit counter by using javascript.My teacher gave me hint tht we can make a hit counter in javascript by using loops in javascript code.Well i also dont know how to do tht So, i think tht u both r right it it is impossible to make a hit counter in javascript.. Thnx once again. Bye & have good time. |
|
#5
|
|||
|
|||
|
It's not impossible to make javascript that counts you hitting the same page on ONE machine, but it is impossible to count everyone who hits your page as you can't store stuff on the server with javascript.
|
|
#6
|
|||
|
|||
|
Well I know it's possible in Action Script. But I have searched all JavaScript sites and can't find a hit counter. Sorry. But... I do know that you could use Tabular Data Control to do this.. but the file that the Javascript would be reading wouldn't be javascript.
|
![]() |
| Tags |
| javascript, hit, counter |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Age Counter | acrikey | JavaScript Forum | 4 | Jun 2nd, 2008 12:37 |
| Counter | confused | Website Planning | 6 | May 21st, 2007 03:27 |
| hit counter? | skyfire400 | Web Page Design | 6 | Mar 7th, 2006 14:00 |
| A PHP web counter? | k3nshin | PHP Forum | 19 | Feb 19th, 2004 22:35 |
| print "$counter times 2 is ".($counter*2)."<br>" | gwx03 | PHP Forum | 6 | Dec 10th, 2003 10:50 |