I have built an IOT interface webpage which has clickable buttons like a window which should open/close when clicked.
The hardware side is set up (Pi --> ESP --> window actuator controller), & I can send a window open/close message out through an inject node in Node Red but I'm not sure what needs to be done to replace my manual inject node with webpage 'click' events.
Here's a link to a project that explains how to put 'soft buttons' on a web page to turn LEDs on and off.
I'm sure you could modify it to suit to your needs.
Please read the instructions carefully about re-naming 'index.txt' to 'index.html'.