+ 4
How can I join html and js?
How can I join html and js in notepad++?
4 ответов
+ 15
or
<script> code goes here </script>
+ 6
Add <script type="text/javascript" src="myjavascriptfile.js"></script> before the end of your body tag or if you would like the code to execute before your page loads then put it in your head tag. The type attr is optional. Hope this helps.
+ 3
thanks that's a big help
+ 2
<script type="text/javascript" src="YourFile.js">