Answers for "can I have script in html and in a js file"

59

include script in html

<script type="text/javascript" src="/path/to/script.js"></script>
Posted by: Guest on July-17-2020
2

how to reference a javascript file in html

<script type="text/javascript" src="path/filename.js"></script>
Posted by: Guest on March-24-2021

Code answers related to "can I have script in html and in a js file"

Browse Popular Code Answers by Language