Like the idea of ESPbasic.
I was looking for a way to exchange data between espbasic and other html elements, but could not find a clear example. I did find some hints. So after groping around in the dark for a bit, came up with the following code. Perhaps someone may find an idea in it for their own projects.