Relative Content

Tag Archive for javascripthtmleventsonclickaddeventlistener

I cannot add a click event to the cards inside a div with the scroll event

I am working on a project to visualize YouTube channels using its Data API. I am developing the channel view, and I have a section where I show the channel videos. The problem I have is that I want to add an onclick event to the channel video cards, so that when I click, it takes me to another screen to see the video in large. The problem is that I can’t add the listener.
interface