denniswong34


SUBMITTED BY: denniswong34

DATE: Oct. 28, 2016, 5:33 a.m.

FORMAT: JavaScript

SIZE: 305 Bytes

HITS: 968

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <h1>JavaScript in Body</h1>
  5. <p id="demo">A Paragraph.</p>
  6. <button type="button" onclick="myFunction()">Try it</button>
  7. <script>
  8. function myFunction() {
  9. document.getElementById("demo").innerHTML = "Paragraph changed.";
  10. }
  11. </script>
  12. </body>
  13. </html>

comments powered by Disqus