I made a website with(I think) a pretty cool and simple navigation menu a while back, so I decided to try and put it on CodePen. The onscroll event listener just seems to not be called?
The codepen URL is here
It works on locally or when hosted on my hosting service
window.onscroll = function() { console.log("test") /*code*/ }
If you have any idea, please tell me. Thanks in advance.
I tried adding eventlistener, doesn't work, tried adding onscroll directly in the html, doesn't work as well.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/bGF9N6T
Comments
Post a Comment