Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <title>day 18</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="style.css" rel="stylesheet">
- </head>
- <body>
- <p id="demo1"></p>
- <p id="demo2"></p>
- <button type="button" onclick="document.getElementById('demo1').innerHTML = 'Add Text'">Click Here</button>
- <p id="demo">
- This is Paragraph
- </p>
- <button type="button" onclick="document.getElementById('demo').innerHTML = 'Hello JAVASCRIPT'">Click Here</button>
- <script>
- document.getElementById('demo2').innerHTML = 10 + 5;
- document.write(10 + 35);
- document.write('<br/>');
- document.write('10 + 35');
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement