This is a hard question to ask because I have no idea if what I want to do is possible and if it is what code would do it.
I have an Arduino running a web server that can control 8 relays.
To turn a relay on and off I use.
I would like to make a HTML page that has on and off buttons.
So far everything I try when I press the link above it loads up a page from the web server running on the Arduino. But I would like to stay on my custom HTML page with out bringing that page up.
So basically I want the link to send a request but not pull the page up. Is that possible?
My code is:
<form method="get">
<p>Led controller</p>
<br>led1 <input type="button" name="led1" value="on">
<br>led2 <input type="submit" name="led2" value="on">
<br>led3 <input type="submit" name="led3" value="on">
<br>led4 <input type="submit" name="led4" value="on">
<br>led5 <input type="submit" name="led5" value="on">
<br>led6 <input type="submit" name="led6" value="on">
<br>led7 <input type="submit" name="led7" value="on">
<br>led8 <input type="submit" name="led8" value="on">
<br>All
<input type="submit" name="all" value="on"><input type="submit" name="all" value="off">
</form>
Led controller
led1
led2
led3
led4
led5
led6
led7
led8
All – Michael Harker Feb 29 '16 at 17:58