Help | Sololearn: Learn to code for FREE!

+1

Help

Help https://code.sololearn.com/WavAHVcGZOk1/?ref=app

8/8/2022 3:10:18 PM

C#Coder

2 Answers

New Answer

+2

C#Coder First thing class name should not have dot(.) 2nd thing write code inside window.onload function window.onload = function() { const button = document.querySelector(".button"); button.onclick = function () { alert("hello!"); } }

0

Thanks