Moderator: igrr
If you mean "call function on button pressed until it is released", then, in HTML, it won't be "onClick()" event, but "onMouseDown()" and "onMouseUp()" events, and your ESP should received those 2 events thru AJAX calls.
So, it still doable !