0

Why document.getElementById("id").innerHTML = variable's_value don't work when I passing a string value in a <p> tag?

4th Aug 2019, 10:53 AM
sam
sam - avatar
4 Answers
+ 1
Or window.onload
4th Aug 2019, 11:55 AM
Nico Ruder
Nico Ruder - avatar
0
Is there an error that the element is not found
4th Aug 2019, 11:53 AM
Nico Ruder
Nico Ruder - avatar
0
The window.onload works. Thank you so much
4th Aug 2019, 2:12 PM
sam
sam - avatar
- 1
If yes put a document.onload = function() { // ...code } around
4th Aug 2019, 11:54 AM
Nico Ruder
Nico Ruder - avatar