Event objects example doesn`t work

Hello!
I studied the topic of Event Objects, but found that the example from the given topic does not work correctly.
The first div element in the required field does not change its color.
Please check if the given code is really not working as it should or the problem is on my side.
Source GitHub

Hi @Taiga!

It seems to work OK for me. I’m assuming you are reading about it at https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_objects ?

And you can find our live version at https://mdn.github.io/learning-area/javascript/building-blocks/events/useful-eventtarget.html

What browser are you using? I tested in Fx and Chrome.

1 Like

I use Chrome v.90.0.4430.93
I tested the code in OperaGX and everything works correctly in this browser.
Can’t figure out why the code doesn’t work in chrome.
Yep, I reading: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_objects

i used brave which is chromuim based and it work fine

@Taiga could you try to disable all extension or clear your cache/cookies maybe one of the extension affect it

hope that help and have a nice day :slight_smile:

I clear cache and coockies and its work! Thanks a lot! :smile:

congratulation and you very welcome :slight_smile: