0

Manipulation of html using js, cannot set property onclick of null.

https://code.sololearn.com/WWMLL0MJW6gf/?ref=app

14th May 2020, 10:58 AM
Parth Puri
Parth Puri - avatar
5 odpowiedzi
+ 3
try this window.onload = function(){ document.getElementById("button").addEventListener("click",function(){ document.getElementById("text").innerHTML=" order placed"; }); }
14th May 2020, 11:18 AM
Abhay
Abhay - avatar
+ 2
window.onload = function(){ document.getElementById("button").addEventListener("click", function(){ document.getElementById("text").innerHTML=" order placed"; }) }
14th May 2020, 11:17 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Search for similar questions please , https://www.sololearn.com/Discuss/2292585/?ref=app
14th May 2020, 11:02 AM
Abhay
Abhay - avatar
+ 1
Check out the corrected code :)) https://code.sololearn.com/WknoQsyCV0Lo/?ref=app
14th May 2020, 10:38 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Still not working
14th May 2020, 11:14 AM
Parth Puri
Parth Puri - avatar