Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>JavaScript Hello World</title>
- </head>
- <body>
- <style>
- div {
- display: inline;
- }
- </style>
- <h1>
- My <div id="js">test</div> works!
- </h1>
- <script>
- var s = "java script";
- document.getElementById("js").innerText = s;
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement