include script in html
snippet in html

import js in html

user918

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

how to link your js file to html

user1057

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

include script in html

user7799

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

linking a script .js

user5700

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

import script html

user206

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

link js file

user7228


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