+ 2

How use javascript & html at a time

javascript & html

5th Mar 2018, 5:03 PM
Devendra Kanade
Devendra Kanade - avatar
5 odpowiedzi
+ 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>
5th Mar 2018, 5:09 PM
NoxFly
NoxFly - avatar
+ 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.
6th Mar 2018, 1:22 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 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.
5th Mar 2018, 6:13 PM
MOHD SHADAN KHAN
MOHD SHADAN KHAN - avatar
6th Mar 2018, 2:12 AM
Sashikumar😎SK
Sashikumar😎SK - avatar
+ 1
https://www.sololearn.com/learn/JavaScript/1125/ https://www.sololearn.com/learn/JavaScript/1206/
6th Mar 2018, 2:31 AM
***