Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <button onmousedown="myevent('on');" onmouseup="myevent('stop');">LED ON;/button>
  2.  
  3. <script>
  4. function myevent(x) {
  5. var xhr = new XMLHttpRequest();
  6. xhr.open("GET", "/action?go=" + x, true);
  7. xhr.send();
  8. }
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement