Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <h2>What Can JavaScript Do?</h2>
- <p id="demo">JavaScript can change HTML content.</p>
- <button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <body>
- <h2>What Can JavaScript Do?</h2>
- <p id="demo">JavaScript can change HTML content.</p>
- <button type="button" onclick="document.getElementById("demo").innerHTML = " & quot; is " "">Click Me!</button>
- </body>
- </html>
Add Comment
Please, Sign In to add comment