Answers for "how to link js to html external"

80

import js in html

<script type="text/javascript" src="yourfile.js"></script>
Posted by: Guest on February-23-2020
7

how to link javascript to html

<script src = "index.js"></script>
Posted by: Guest on May-16-2020
1

how to include external javascript in html

<script src="script.js">
Posted by: Guest on September-18-2020
0

pointing to an external javascript file in html

<script src="my_javascript_file.js"></script> 
      <!-- Both work -->
<script src="../src/js/[file_name].js"></script>
Posted by: Guest on September-01-2021

Browse Popular Code Answers by Language