+ 1
DOM and events
I am doing intermediate JavaScript and I am confused about the entire DOM and events module. I will try to figure out but I would appreciate a more simplified explanation or a place when I can get the explanation.
1 Odpowiedź
+ 2
DOM stands for Document Object Mode.
I think you already know, a web page contains different tags, such as h1, h2, p, div and many more.
You can think of these tags are the object within an HTML document.
And the events is something like a click on a button, a click on an image.
Somewhere in the course, you will see a robot dances and facing different direction base on which button you click.
A click on a button is an event, a button being clicked.
It changes the robot (an image object), base on the function linked to the event.