+ 1
Why is JavaScript code section not working in my program ?
Can anybody help me out with this?
3 Antworten
+ 3
Okay thank you so much 🙂
+ 2
It's known issue with SL editor.
Code from JS tab run before html loads.
If you are trying to manipulate DOM elements using js. You'll receive error message "can't read property of null" etc.
Refer this post it explains how to solve this problem :
https://www.sololearn.com/post/90825/?ref=app
+ 1
Try to put your code here (in js section):
window.onload = function() { write your code here }