How can I call a function from HTML button?

I use the ESP 32 webserver library, and for my project I need to call a function on a button. Can somebody give me a way to do this?

// On connect, the device would recieve the HTML data.
void handleOnConnect()
{
Serial.println("Connection handling called.");

makePage(); // Making HTML page.
streamFile("/index.html", "text/html"); // Streaming HTML.
}

// If the server was not found, the device would return 404.
void handleNotFound()
{
Serial.println("Error: 404 (Not found)");
server.send(404, "text/plain", "Not found");
}

void streamFile(const char *path, String mimeType)
{
// Streaming the generated html file, if it exists.
if (SPIFFS.exists(path))
{
File file = SPIFFS.open(path, "r");
server.streamFile(file, mimeType);
file.close();
}
else
handleNotFound();
}

void handleToday()
{
// at kell adni a handleConnectnek a napot displayDate=today
displayDate = getCurrentDate();
handleOnConnect();
}

void handlePrevDay()
{
// at kell adni a handleConnectnek a napot displayDate=displayDate-1
getPreviousDate();
handleOnConnect();
}

void handleNextDay()
{
// at kell adni a handleConnectnek a napot displayDate=displayDate+1
getNextDate();
handleOnConnect();
}

Hi zedespook,

What function do you want to call on click?