how to include external javascript in html
snippet in html

linking a script .js

user1436

<script type="text/javascript" src="path-to-javascript-file.js"></script>

html external javascript

user4794

<script src="myScript.js"></script>

how to include external javascript in html

user6558

<script src="script.js">