Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <div id="x">Demo</div>
- <button onclick="x()">Click here</button>
- <script>
- function x(){
- document.getElementById("x").innerHTML+="Hello World"
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement