import script html
snippet in html

how to link your js file to html

user1748

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

import script html

user1379

<html>
  <head>
    <script type="text/javascript" src="/path/to/script.js"></script>
    ...

link js file

user3347


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

how to link javascript to html

user9843

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

how to link js to html

user2737

<script src="Your-JavaScript-File.js"></script> <!--If JS file is in same folder with HTML file-->