+ 1
Cannot set propety 'innerHTML' of null
I want to make a test: var elem = document.getElementById("A"); elem.innerHTML = "Hello"; But it is marking a Error at Line 2 Why? I put: <body><div id="A"></div></body>
1 Respuesta
+ 3
window.onload= function (){ your code }