Why EventListener is not working in JS section of SoloLearn PlayGround
5/29/2018 8:54:04 AM
Gopi Chand4 Answers
New AnswerI think Hatsy Rei meant to post the link of your code with the question. Anyways, I checked your code and found the solution :D and that is "Wrap your JS code in a window.onload function" Example ~ window.onload = function (){ // all code here } Also note that you didn't define the "btn" variable for the anything so it will show errors
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message