How to link a java script file to html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to link a java script file to html

hello

27th Jan 2018, 4:00 PM
Goransh bajaj
Goransh bajaj - avatar
3 Answers
+ 6
add either of these two in HTML file๐Ÿ˜€๐Ÿ˜€ 1) <script src="url of script.js"></script> 2) <script> document.write("Hello World!!"); //script goes here.... </script>
27th Jan 2018, 4:27 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
0
you add in your HTML file : <script src="myscript.js" />
27th Jan 2018, 4:04 PM
Vincent
Vincent - avatar
0
thanq
27th Jan 2018, 4:05 PM
Goransh bajaj
Goransh bajaj - avatar