Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //HTML
- <button>I am a button</button>
- // JavaScript
- <script>
- var buttons = 1;
- $("button").click(function () {
- location.hash = 'buttons' + ++buttons;
- $("body").append("<button>Click me</button>");
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement