Answers for "call javascript from external file"

80

calling javascript file in html

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

Code answers related to "call javascript from external file"

Browse Popular Code Answers by Language