denniswong34


SUBMITTED BY: denniswong34

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

FORMAT: JavaScript

SIZE: 319 Bytes

HITS: 986

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <h1>External JavaScript</h1>
  5. <p id="demo">A Paragraph.</p>
  6. <button type="button" onclick="myFunction()">Try it</button>
  7. <p><strong>Note:</strong> myFunction is stored in an external file called "myScript.js".</p>
  8. <script src="myScript.js"></script>
  9. </body>
  10. </html>

comments powered by Disqus