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?
2 ответов
+ 2
Try to put your code in the end of body whith sript tag to html file