0
I am trying to chane id in this code but i can't understand what error means?
please tell me why this error is occurring and what to do to solve it. https://code.sololearn.com/WR6svL9Wy086/?ref=app
3 Réponses
+ 2
[quietly, maybe nobody will be bothered]
If already fixed, this may be new (or it was fixed offsite).
TL;DR: document.write (line 188) is wiping the document. Remove it.
Error: Cannot set property 'innerHTML' of null (line 190) after tapping on lower (4th) box.
Cause: There's no element with the id 'smit' in the document.
Retort: But wait, there is one!
Cause: document.write() after document finishes loading (line 188) WIPES the current document.
Effect: The element with id 'smit' has been deleted.
Fix: Don't document.write() to the DOM after it finishes loading (if you want to keep it)
Also see this Q&A:
https://www.sololearn.com/discuss/1460899/?ref=app
+ 1
What is the error ? I'm unable to reproduced it. Please check once
0
it's solved now but thanks the problem is with.. ohh just let it go... I am tired of typing