0
How can you add JavaScript in a HTML page
7 Answers
+ 7
<script>
Js code
</script>
external js
<script src="path" />
+ 3
Just start learning JavaScript in sololearn you will know everything then.
+ 2
https://www.digitalocean.com/community/tutorials/how-to-add-javascript-to-html#:~:text=You%20can%20add%20JavaScript%20code,want%20the%20JavaScript%20to%20load.
+ 2
Itz Wright
Use the <script> tag
Put the javascript in the script tag while applying javascript in html page,
You can put the script in head tag or at the end of the body
+ 2
Just start coding in JS tab that's all