Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" onclick="led('/led1/1')">Led1</a>
- <button onclick="led('/led1/1')">Buttton</button>
- <button onclick="led('/led2/2')">Buttton</button>
- <script>
- function led(path){
- httpRequest = new XMLHttpRequest();
- httpRequest.open('GET', path, true);
- httpRequest.send(null)
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement