how to link javascript to html
snippet in javascript

import js in html

user9020

<script type="text/javascript" src="yourfile.js"></script>

how to link your js file to html

user5954

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

link javascript to html

user1320

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

import script html

user808

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

link js file

user9110


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

how to link javascript to html

user1561

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