how to use onscroll and on wheel in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to use onscroll and on wheel in javascript?

I can't change the style of a tag on my page (external css). I tried with onscroll/onwheel in the tag. Also window.onscroll but nothing seems to be working. By the way, i change the style of an external css page using "document.getElementById('someid').style.backgroundColor="color" " right?

8th Feb 2018, 5:45 PM
Akib
Akib - avatar
2 Answers
+ 8
Show your code please. It will be more easy to help you, when we'll see the programm.
8th Feb 2018, 6:57 PM
Vitaliy Angelov (Rostov-on-Don)
Vitaliy Angelov (Rostov-on-Don) - avatar
0
Thanks. I kinda solved/figured it out. If anyone can tell me what event attributes i can use in the window.event(onload/idk) please tell me.
8th Feb 2018, 10:36 PM
Akib
Akib - avatar