importar js em html
<script type="text/javascript" src="yourfile.js"></script>
incluir o programa em html
<script type="text/javascript" src="/path/to/script.js"></script>
como ligar o seu ficheiro js ao html
<script src="index.js"></script>
como ligar o javascript ao html
<script src="PathToYourFile.js"> </script>
ligar o javascript ao html
<script src="index.js"> </script>
importar um programa html
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...
NU
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...