Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button onmousedown="myevent('on');" onmouseup="myevent('stop');">LED ON;/button>
- <script>
- function myevent(x) {
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "/action?go=" + x, true);
- xhr.send();
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement