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

Add JavaScript to html

How to add JavaScript to HTML5 ? thanx

12th May 2019, 11:20 PM
Karim
2 Answers
+ 4
<!--Of these two forms--> <!--File in JS--> <script type="text/javascript" src="Music.js"></script> <!--Code inside HTML--> <script type="text/javascript"> alert('Hy'); // Your source </script>
12th May 2019, 11:58 PM
Jônatas Araripe
Jônatas Araripe - avatar
0
thank you for the answer
13th May 2019, 12:00 AM
Karim