JavaScript in HTML
- External Script
<script src="path/to/javascript/file.js" > </script>
- Script within HTML document
<script > /* JavaScript code as content of script element */ </script>
- "Inline" scripts as values of event attributes (Avoid!)
<a href="#" onclick="javascript:void(window.resizeTo(1024,768))"> Size Window to 1024 x 768 </a>