Hi Ron,
So, as you clarified, you want the _browser_ to talk to the Arduino.
The _server_ talking to the Arduino is, of course, trivial.
Up until recently, the answer would have been "no". The browser is "insulated" from local hardware, which in turn means no access to the serial port.
However, in the last couple years there has been movement in this area. There is a Web Serial API developing (
https://developer.mozilla.org/en-US/docs/Web/API/SerialPort) however it is not yet a standard. That means support in browsers varies, and indeed it may change before it becomes a standard, so code using it should be considered "might need to replace in the not too distant future."
It will have all the normal restrictions - only over HTTPS, only after user gives permission, and so on - but hopefully will progress from the "experimental" stage to the "standards track" stage at some point.
I'm held back on implementing it as a feature in NetTalk for now, because of the experimental nature of it. However it's a pretty small API so could easily be implemented with some JavaScript.
For personal use, I'd say it's ok to use, but I'd be wary of using it in a commercial setting at this point.
cheers
Bruce