+ 2
What is the error with this code? I want to display Hello World when the button is clicked,but cannot.
HTML,JS https://code.sololearn.com/W6U05z3LhbB3/?ref=app 【SOLVED】
4 Respuestas
+ 2
Actually JavaScript gets loaded before
Html thats why error is there
To solve this
U can use window.onload function
Learn more about this :
https://www.w3schools.com/jsref/event_onload.asp
https://code.sololearn.com/W3CU1Fd75sg8/?ref=app
+ 2
Thank you very much Inumaki👍
+ 1
Thanks brother.👍