How to link js file with html in notepad++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to link js file with html in notepad++?

22nd Sep 2017, 5:16 PM
Abdul Kabeer Khan
Abdul Kabeer Khan - avatar
3 Answers
+ 3
Include the script inside your head tag. The attribute src is for the path to the file, it can be relative or absolute, local or from a website. Examples: aFolder/file.js (relative) C:\user\desktop\file.js (absolute) <script src="myFile.js"> </script>
22nd Sep 2017, 5:20 PM
voidneo
0
ok boss 👍
22nd Sep 2017, 5:41 PM
Abdul Kabeer Khan
Abdul Kabeer Khan - avatar
0
j
4th Aug 2020, 10:58 AM
yep22
yep22 - avatar