+ 2
How use javascript & html at a time
javascript & html
5 Answers
+ 3
What is your real question ?
How to link js to html ?
For example, go watch my codes :)
for an external js :
<script src="myscript.js"></script>
for an internal js :
<script>
....
</script>
+ 2
Two different ways.
1) Using HTML and JS in the same file.
In file.html write your HTML like normal and then write your JS in <script></script> tags.
2) Using HTML and JS in seperate files.
In file.js write your JS and in file.html using <script src="file.js"></script> to embed it in.
+ 1
write a html code and insert a <script> tag in which you can specify type of script as JavaScript and inside the tag body write the code for whatever you want to do.
+ 1
Try This...
https://code.sololearn.com/W8gc6uot7mPB/?ref=app
+ 1
https://www.sololearn.com/learn/JavaScript/1125/
https://www.sololearn.com/learn/JavaScript/1206/