Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //HTML
  2. <button>I am a button</button>
  3.  
  4. // JavaScript
  5. <script>
  6. var buttons = 1;
  7. $("button").click(function () {
  8. location.hash = 'buttons' + ++buttons;
  9. $("body").append("<button>Click me</button>");
  10. });
  11. });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement