Uncaught type error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Uncaught type error

Please why am I getting the error "Uncaught type error, cannot set property (method) of null" Even though my code is fine,

20th Jul 2020, 2:05 PM
Abdulrahman Olamilekan
Abdulrahman Olamilekan - avatar
2 Answers
+ 1
Window.onload=function() { //your code } Try this
20th Jul 2020, 2:13 PM
v@msi😉
v@msi😉 - avatar
+ 1
Thank you so much sir. It worked
20th Jul 2020, 2:37 PM
Abdulrahman Olamilekan
Abdulrahman Olamilekan - avatar