+ 4
Fix that error
I want to change the html containt by js code https://code.sololearn.com/W295pLx6Yszm/?ref=app
3 Respuestas
+ 4
Do :
window.onload = function()
{
//your code here
}
That will wait the entire page is loaded before executing your JS code.
+ 4
//As Théophile said change your js code to this
var adnan = document.getElementById("ad").innerHTML = "<P>ADNAN IS GREAT</P>";
+ 3
Thanks its work for me