denniswong34


SUBMITTED BY: denniswong34

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

FORMAT: JavaScript

SIZE: 322 Bytes

HITS: 976

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

comments powered by Disqus