Link JavaScript to html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Link JavaScript to html

Someone please help on how to link my javascrip code to html. The javascript code is for my webpage background

28th Jun 2022, 9:51 AM
Habib Ayuba
5 Answers
+ 6
Have you tried to Google this and looked at the examples? It should work using the script-tag.
28th Jun 2022, 10:12 AM
Lisa
Lisa - avatar
+ 5
Complete js courses [DOM & Events - lesson 45.1 to 54.1] https://www.sololearn.com/Course/JavaScript/?ref=app
28th Jun 2022, 10:57 AM
SAN
SAN - avatar
+ 2
Habib Ayuba You can either use script tag inside html or use external JS file and then include in html.
28th Jun 2022, 3:18 PM
A͢J
A͢J - avatar
30th Jun 2022, 4:19 AM
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ - avatar
+ 1
Thanks
28th Jun 2022, 12:07 PM
Habib Ayuba