The video discusses the ways to stop the default browser actions using JavaScript. There are two ways to do so. The first way is to use "return false" on the event handler placed on the HTML file. The second way is to use the preventDefault function on an event object. If the preventDefault function is applied to an event object, the isDefaultPrevented property of the event object becomes true. Bubbling effect still applies, so that once the descendant has prevented the default browser actions, the ancestors cannot do the actions that would have done initially due to bubbling.
4:22 - Use "return false" on the event handler placed on the HTML file
5:43 - Use preventDefalut() function
Playlist of my JavaScript course
• [20 hours] JavaScript tutorial for be...
Playlist of my HTML5 and CSS3 tutorials
• [12 hours] HTML and CSS tutorials for...
Playlist of my algorithm walkthrough
• Algorithms and data structures | DSA ...
Playlist of my Java course
• [14 hours] Java tutorial for beginner...
Playlist of my Java examples
• Java projects for beginners | Java pr...
#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #preventdefault
En esta página del sitio puede ver el video en línea Stop the default browser actions - Basic JavaScript Fast (62) | preventDefault, isDefaultPrevented de Duración hora minuto segunda en buena calidad , que subió el usuario Begin Coding Fast 28 enero 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 35 veces y le gustó 1 a los espectadores. Disfruta viendo!