Let's Quickly Create a JavaScript Modal Window

preview_player
Показать описание
The music in this video was created by me.
Рекомендации по теме
Комментарии
Автор

Amazing content and the way you give it
Please continue

hongkilldong
Автор

I like the idea of using just divs. But in terms of buttons, doesn't it help a lot with accessibility when you use them instead?

NicoHeinrich
Автор

Hello, thanks for the tuto
I have a little problem.
when i click on any item on the last column it's always showing the modal of the first row.
any help will much apperciated

hiken
Автор

Hi i am new to programming. I noticed in all your videos you don't remove event listeners, is it that they are automatically removed by the garbage collector or when the page is exited (the user closes the browser tab)? My other question where and when should i remove an event listener declared in a function. In React, svelte, Vue events are removed when a component is unmounted (in the unmount or effect methods, etc.). But in vanilla javascript if i assign an event in a function when and where do i remove the event? For instance if i have this function:

zapp.someFunction = function() {
zapp.imgfileInput.addEventListener('change', readFiles);
}

Where and when do i remove the event listener attached to the imgfileInput element?

I also have a single namespace in my project, zapp that contains needed variables, nodes, and elements throughout my program.
It would be nice if i could free all the data in zapp object when my program terminates (the user closes the browser tab), but i am stuck when and where to do this. Please help.

manfredtkavetu