DOM and events | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

25th Feb 2024, 7:16 AM
Wakhile Biyela
Wakhile Biyela - avatar
1 Answer
+ 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.
25th Feb 2024, 8:48 AM
Wong Hei Ming
Wong Hei Ming - avatar