newbe ques- please i just need to understand how to attach external script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

newbe ques- please i just need to understand how to attach external script?

i created 2 files 1st is- html, 2nd is-js after i inserted the code and run the html file its giving me blank page this is the code for the html: <html> <head> <title> </title> <script src="demo.js"></script> </head> <body> </body> </html> this is for the js file: Your demo.js file includes the following JavaScript: alert("This is an alert box!"); please just got started i must understand this basic principles! thanks ahead.

18th Nov 2016, 8:35 PM
Raziel
1 Answer
0
Try to put a script tag into the body tag.
6th Dec 2016, 4:55 PM
Robert Kopydłowski
Robert Kopydłowski - avatar