+ 4

How can I join html and js?

How can I join html and js in notepad++?

19th Feb 2017, 9:15 AM
Stern Ritter
Stern Ritter - avatar
4 ответов
+ 15
or <script> code goes here </script>
19th Feb 2017, 9:19 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 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.
19th Feb 2017, 9:18 AM
Scott John Mansfield
Scott John Mansfield - avatar
+ 3
thanks that's a big help
20th Feb 2017, 1:26 AM
Stern Ritter
Stern Ritter - avatar
+ 2
<script type="text/javascript" src="YourFile.js">
19th Feb 2017, 11:45 AM
Apple