0

Using JavaScript files

I noticed I cannot open a JavaScript file like I would an HTML file. I even tried linking an HTML file to an external JavaScript file, but cannot output the JavaScript code. CSS code always outputs, but not JavaScript. I am using the gedit or GEdit text editor. I merely type one line of code: alert(“test”); It should output a pop up window. Nothing happens. How can I make it work?

8th Dec 2019, 6:38 AM
thecity2201
thecity2201 - avatar
2 ответов
+ 2
Try to put your code in the end of body whith sript tag to html file
8th Dec 2019, 6:48 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
8th Dec 2019, 6:50 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar