0
Cannot read property (name of it) of null
Please someone tells me why i get this kind of error
3 Answers
+ 8
Use
window.onload=function(){
Correct js code
}
+ 4
Try this
window.onload = () => {
// JS code
}
+ 3
try with this
put your js code of js section as
document.onload = ()=>{
// put your js code here
}