I use on device simple http server using busybox(httpd) at the same time, this device can be controlled via http on port 436, to control mediaplayer.
IP:436/sendremotekey?%7B%22key%22%3A%22VUP%22%7D
As a client I tried find a way to create a button to make some action using link as above, I have prepared a button:
<button type="button">
<a href="/sendremotekey?%7B%22key%22%3A%22VUP%22%7D" onclick="javascript:event.target.port=436">VOL</a>
</button>
… of course this opens a link..but is it possible to prepare a button that will invisibly execute the command/link after click?
Greetings