4th Aug 2021, 9:44 AM
Coder
Coder - avatar
5 Antworten
+ 2
Coder Write JS code inside this: window.onload = function () { }
4th Aug 2021, 9:49 AM
A͢J
A͢J - avatar
+ 3
I believe javascript is loading first and then the document . If document was loading first then there shouldn't be any problem or am i wrong!!
4th Aug 2021, 10:35 AM
Abhay
Abhay - avatar
+ 2
Abhay you are correct. On android the javascript loads before the body of the html document. https://code.sololearn.com/Wa16A20a6a23/?ref=app https://code.sololearn.com/Wa6a10A11a12/?ref=app
4th Aug 2021, 11:29 AM
Brain & Bones
Brain & Bones - avatar
+ 1
A͢J - S͟o͟l͟o͟ H͟e͟l͟p͟e͟r͟ This code is working now Thanks....., but why have to use it on all codes. It's not like this on Visual Studio....:(
4th Aug 2021, 10:02 AM
Coder
Coder - avatar
+ 1
Coder Because in SoloLearn document load first then JavaScript. Sololearn terminal is different than others.
4th Aug 2021, 10:05 AM
A͢J
A͢J - avatar