Ask coding questions

← Back to all posts
Number of Views in html
51LV3RC0D3R (22)

Is there a way to track the number of views using html?

Answered by ch1ck3n (2055) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2766)

You can try using those view counters and just putting the code they say onto your repl

Xenity (9)

you would need to use javascript to add 1 to a variable each time the page loads and display that variable by using innerhtml (https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)

ch1ck3n (2055)

@Xenity And how exactly would that data be available to all other users on the website