Rohit Sawblog.rsaw409.me·Dec 3, 2024Event Capturing in JavaScriptEvent capturing occurs when a nested element gets clicked. The click event of its parent elements must be triggered before the click of the nested element. Event capturing is not the default behavior of Javascript Events. In vanilla javaScript we ne...javascriptJavaScript
Bhavesh Jadhavbhaveshjadhav.hashnode.dev·Aug 27, 2024Understanding Event Propagation in JavaScriptIn JavaScript, events like clicks don't just stay where they happen. They can move through different parts of your webpage, which is known as event propagation. Let's explore what this means, how it works, and how you can control it using event bubbl...10 likes·36 readsJavascript BasicsKeyboard events in JavaScript
Akash Deep Chitranshcodechitra.hashnode.dev·Feb 6, 2023Event Propagation In JavaScriptEvent Propagation is a mechanism that explains how an event propagates or travels through the dom tree. Before understanding Event propagation we have to remember one point. Events are always created whether we listen to them or not. <!DOCTYPE htm...77 readsJavaScript
Hinanshi Sutharhinanshi.hashnode.dev·Nov 19, 2022Handling Events in JavaScriptBut first, back to basics ! What are events and event handlers ? An event is a signal that something has happened. Often, when events happen, you may want to do something. There are many events that JavaScript provides to interact with the DOM. And ...19 likes·238 readsEvent propagation
Savita Vermasavitaverma.hashnode.dev·Sep 28, 2022Event Bubbling v/s Event CapturingWe will understand event listeners before understanding event bubbling & event capturing. An event listener is nothing but a function that gets executed when an event happens and that event can be anything like onclick event, onchange event, pressing...eventbubbling