Can i add a script to a div which will work when the html document is opened in a browser? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can i add a script to a div which will work when the html document is opened in a browser?

7th Nov 2018, 3:12 PM
Asirbachan
Asirbachan - avatar
2 Answers
+ 6
Sure, you can place a <script> wherever you want to, although it's best just to put all of your scripts in the <head> section.
7th Nov 2018, 4:18 PM
Tony
Tony - avatar
0
thanks I was looking for it for many days
7th Nov 2018, 4:38 PM
Asirbachan
Asirbachan - avatar