Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="Id,onclick event, document.getElementById, innerHTML">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <p id="para"> I'm the original content of the paragraph</p>
- <button onclick="document.getElementById('para').innerHTML = "I'm replaced content of the paragraph"> Click me to change Paragrap content</button>
- </body>
- </html>
Add Comment
Please, Sign In to add comment