0
JavaScript problem in code playground.
I have got a problem with JS in code playground. When I wrote JS in HTML document in <script></script> tags, everything was ok, but when I wrote this script in JS document (still in playground) my code did not work. There were errors, example: when I used innerHTML. Please help me what's wrong.
1 Antwort
+ 4
Put the code called by window.onload
window.onload = function (){
// put your js code here
}
https://code.sololearn.com/WZI46kz2rpe0/?ref=app