0
Manipulation of html using js, cannot set property onclick of null.
5 ответов
+ 3
try this
window.onload = function(){
document.getElementById("button").addEventListener("click",function(){
document.getElementById("text").innerHTML=" order placed";
});
}
+ 2
window.onload = function(){
document.getElementById("button").addEventListener("click", function(){
document.getElementById("text").innerHTML=" order placed";
})
}
+ 1
Search for similar questions please ,
https://www.sololearn.com/Discuss/2292585/?ref=app
+ 1
Check out the corrected code :))
https://code.sololearn.com/WknoQsyCV0Lo/?ref=app
0
Still not working