I have made a simple site that generates random number. I want to record how many times a specific number comes up.
Is there anyway I can use javascript to write to a Local .txt File on the server?
or do I have to learn PHP?
I have made a simple site that generates random number. I want to record how many times a specific number comes up.
Is there anyway I can use javascript to write to a Local .txt File on the server?
or do I have to learn PHP?
If you want to keep track of the number of times a random number comes up for a single client/browser, you can use localStorage. If you want to keep track of the number of times the random number occurs across all executions, you'll need some sort of server-side processing.
If you want to avoid any server side processing and this data is critical then you can try GoogleAnalytics code to capture and analyaze the randomly generated data.