+ 6
Why this don't do something ?
With a real software like notepad++, Dreamweaver, DroidEditFree etc... this code do something... why in sololearn NO ? https://code.sololearn.com/Wlk0fRHuaP3P/?ref=app
1 Answer
+ 10
update: better use the window.onload for this. check the updated code.
source: https://www.sololearn.com/discuss/300061/?ref=app
put your script in the body tag else your JS loads before your doc is loaded.
https://code.sololearn.com/W1AWC2knV7NO/?ref=app