25th Dec 2022, 3:05 PM
ŠŃ€Ń‚ŃƒŃ€ Š„рŠ¾Š¼Š¾Š²
2 Answers
+ 4
All your JavaScript has to be executed only after the rest of the page (the html document) is fully loaded. You can achieve this by embedding your script in an anonymous function that executes from onload event. window.onload = () => { // ... All your JavaScript } Also you cannot reference external local js files in html script tag. If this code is not your own creation, it would be prudent to add the source in comments.
25th Dec 2022, 3:46 PM
Tibor Santa
Tibor Santa - avatar
+ 2
Can you please describe more what is not working? Also it will be best if you post your code so we can see, you can use "+" to embed your code. https://www.sololearn.com/discuss/1316935/?ref=app
25th Dec 2022, 3:12 PM
PanicS
PanicS - avatar