ESP32 web server read button from html page

Hello everyone, I have started a project with which I want to keep track of the number of details made by machines, looking at them on an HTML page that refreshes me every 4 seconds. I would like to reset the counter values with a click of the reset button. I searched a lot on google but couldn’t find a way to do it without using href tag and sending it to another page. I want to stay on the same page.

In this case, I simulate the machine counting with buttons
thanks for any help.
I attach Ardunio code and HTML code. (2.06 KB)