Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <script>
  2. function clicktoDisable(link) {
  3. // disable subsequent clicks
  4. link.onclick = function(event) {
  5. event.preventDefault();
  6. }
  7. }
  8. </script>
  9. <a href="target.html" onclick="clicktoDisable(this);">Click here</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement