- 1
Good morning sir. I want to interact my code js with the html code. I have error. Thanks you sir.
Interact JavaScript with html code. https://code.sololearn.com/Wl2FEW7Yaw7J/?ref=app
1 Odpowiedź
+ 3
Put your JS code inside this
window.onload = function() {
//Your code
};
So your code will be executed as soon as the page has loaded, but not before that