0
Getting Uncaught TypeError: Cannot set property of 'onfocus' of null line: 11
I don't know why I'm getting this error at first i thought there's some issue with my id but it's not. All code looks perfect. Need help! https://code.sololearn.com/WkC8nkvV89BD/?ref=app
8 Antworten
+ 2
https://code.sololearn.com/WeS3250M06dF/?ref=app
+ 3
Try this-:
window.onload=( )=>{
// Your code
}
+ 3
codingIsL💗ve if you code are not work
So try this. This is definitely work
window.onload = function(){
// Your code
}
// I know you are new in js but you learn for your mistakes
+ 2
Have you tried what Akash Agrawal said, it works fine.
Put your js code in that
+ 1
It works,
Write your js in
window.onload = () => {
//here
}
//it's about type error
+ 1
Thanks ᴉsɯ@ʌ🙃🙃 Akash Agrawal for the help! Now i got it what you guys mean. That was a silly mistake by me 🤪 (I think this is how you learn programming).
0
Not working :(
0
Js is completely new for me. Can someone share my code after fixing it?
Akash Agrawal ᴉsɯ@ʌ🙃🙃 Jayakrishna🇮🇳