I\'m trying to code a hit counter for a website. As a preference, not required, I\'m trying to use Javascript to do this. On the website\'s html file, I\'m reading a number
Javascript cannot change a file on a server or client computer without security issues. You may want to also look into loading another page as a blank image using PHP or another server side script language. That can then update the count on the file with no issues.