daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="myDiv">
  2.     <button id="myBtn">Click Me</button>
  3. </div>
  4.  
  5. <script type="text/javascript">
  6.     var btn = document.getElementById("myBtn");
  7.     btn.onclick = function(){
  8.         document.getElementById("myDiv").innerHTML = "Processing...";
  9.     }
  10. </script>
  11.    
  12. <div id="myDiv">
  13.     <button id="myBtn">Click Me</button>
  14. </div>
  15.  
  16. <script type="text/javascript">
  17.     var btn = document.getElementById("myBtn");
  18.     btn.onclick = function(){
  19.  
  20.  
  21.  
  22.  
  23.         btn.onclick = null;
  24.  
  25.  
  26.  
  27.  
  28.  
  29.         document.getElementById("myDiv").innerHTML = "Processing...";
  30.     }
  31. </script>
RAW Paste Data
Top