+ 3

AddEventListener

Why doesn't addEventListener work on sololearn? How to handle this issue?

2nd Jan 2021, 11:23 AM
Saleh Ghazimoradi
Saleh Ghazimoradi - avatar
5 Answers
+ 4
In JS tab: window.onload = function(){ //Put all JS code here. }
2nd Jan 2021, 11:45 AM
Vadivelan
2nd Jan 2021, 11:33 AM
Saleh Ghazimoradi
Saleh Ghazimoradi - avatar
+ 2
Vadivelan Tnx pal🙏🌹🌹🌹🙏
2nd Jan 2021, 11:50 AM
Saleh Ghazimoradi
Saleh Ghazimoradi - avatar
+ 1
Can you share your code with us By the way it's work on sololearn
2nd Jan 2021, 11:29 AM
Stuvan
Stuvan - avatar
0
As vadivelan answered your question I want to add some points -in sololearn playground js run before dom content loaded If you want to know more about this here explained post https://www.sololearn.com/post/7444/?ref=app Hope it will help you Happy coding ☺️
2nd Jan 2021, 12:11 PM
Stuvan
Stuvan - avatar