link external js to js code example Example: linking a script .js <script type="text/javascript" src="path-to-javascript-file.js"></script>