script src tag in html
snippet in html

link js file

user4794


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

how to link js to html

user6727

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

script src tag in html

user6232

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