I’m currently working on an Arduino project. At this point I got web page which will tell the Arduino to turn on a light, or to turn off a light. In order to turn a light on or off, I have to enter a link. So far I’ve just simply done this with:
<a href="http://babla.com/turnlighton=1">Button tekst over here</a>
Check it live at: http://geertvandelangenberg.nl/innolab/
Now my problem is that once I hit one of these hyperlinks I will get forwarded to a page which will say that the request has succesfully been completed or not.
Is there any way to make a hyperlink which will just send the URL, without actually forwarding myself to that URL?
You can target your link to a hidden frame, add a frame to your page:
And point your link to it by using the ‘target’ attribute:
If you care for the result of the
turnlightonaction, then go for an Ajax solution.