JavaScript 110: More events on mouse/keyboard and using stopPropagation()/preventDefault()

preview_player
Показать описание
Mouse events in web development are commonly used to interact with web pages and user interfaces. Two important methods for controlling the behavior of mouse events are `stopPropagation()` and `preventDefault()`. Let's explore some common mouse events and see how these methods can be used with them.

Remember that the usage of `stopPropagation()` and `preventDefault()` should be carefully considered, as overusing them can lead to unexpected behavior in your web application. It's important to have a clear understanding of your application's requirements and use these methods judiciously to achieve the desired user experience.

==== Timeline ===========
00:00 - Introduction
00:13 - Focus Event
01:57 - Blur Event
04:20 - Mouse Enter Event
07:48 - Mouse Move Event
11:49 - Mouse Wheel Event
18:12 - Event Bubbling
23:27 - Using stopPropagation() function
28:09 - Copy Event
29:30 - Using preventDefault() function
34:09 - Assignment

Extensions Used
==============

Related Tutorials
==============

Рекомендации по теме