SHARE
TWEET

Untitled

a guest Jan 28th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <button name="a1" onclick ="function(){alert('winter!');}">winter</button>
  2.  
  3. <script>
  4. var a1=document.getElement("a1")[0];
  5. a1.addEventListener("click", function (){alert('summer');});
  6. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top