+ 1

JS Error (solved)

I'm using .innerHTML on JavaScript for a project, and I'm doing it in Sololearn, but the console puts an error reading "inner.HTML". Sololearn doesn't support it? I tried copying and pasting from MDN Web Docs, and appears the same error.

21st Dec 2023, 3:24 PM
Ringo
Ringo - avatar
9 Réponses
+ 2
The main problem is file linking so write js code in to the html file then it will run definitely
21st Dec 2023, 5:11 PM
Bhavesh Atmaram Patil
Bhavesh Atmaram Patil - avatar
+ 1
Done, thanks
21st Dec 2023, 5:44 PM
Ringo
Ringo - avatar
+ 1
It doesnt say its unsupported. The #txt is null. Just add the code inside document.onload function
24th Dec 2023, 9:20 AM
Toni Isotalo
Toni Isotalo - avatar
0
code?
21st Dec 2023, 3:33 PM
A͢J
A͢J - avatar
0
The same as the MDN Web Docs.
21st Dec 2023, 3:49 PM
Ringo
Ringo - avatar
0
It still doesn't work with innerText
21st Dec 2023, 4:56 PM
Ringo
Ringo - avatar
0
Let us see your code please
23rd Dec 2023, 12:06 AM
Levi
0
I put it already...
23rd Dec 2023, 8:40 AM
Ringo
Ringo - avatar