In this video, we're going to cover events in JavaScript. We'll look at how to handle events, and how to create our own events. We'll also look at some useful event handlers, and see how they can be used in our code.
If you're interested in learning more about events in JavaScript, then this is the video for you! By the end of this video, you'll have a good understanding of what events are, how they work, and how you can use them in your code.
#javascript #html #events
The change in the state of an object is known as an Event. In html, there are various events which represents that some activity is performed by the user or by the browser. When javascript code is included in HTML, javascript react over these events and allow the execution. This process of reacting over the events is called Event Handling. Thus, javascript handles the HTML events via Event Handlers.
For example, when a user clicks over the browser, add javascript code, which will execute the task to be performed on the event.
Some of the HTML events and their event handlers are:
Mouse events:
onclick When mouse click on an element
ondblclick When mouse double click on an element
onmouseover When the cursor of the mouse comes over the element
onmouseout When the cursor of the mouse leaves an element
onmousemove When the mouse movement takes place.
Keyboard events:
onkeydown & onkeyup When the user press and then release the key
Form events:
onfocus When the user focuses on an element
onblur When the focus is away from a form element
onchange When the user modifies or changes the value of a form element
Window/Document events
onload When the browser finishes the loading of the page
onresize When the visitor resizes the window of the browser
Social media Links:
Instagram: / parnikatutorials
Website: http://parnikatutorials.in/
Email id: [email protected]
To get the regular updates:
Telegram link: https://t.me/Parnikatutorials
Facebook: https://m.facebook.com/profile.php?id...
Linkedin: / parnika-tutorials-a8a9831b2
Pinterest: / parnikatutorials0892
Playlists:
Virtual Coffee with Jagadeesh:
• VIRTUAL COFFEE WITH JAGADEESH
Digital Logic Design:
• Digital Logic Design
Computer Organization and Architecture:
• ABOUT PARNIKA TUTORIALS
C Programming:
• L 1: WHAT IS AN ALGORITHM AND CHARACT...
Data Structures:
• L 1: Uncover the Benefits of Linked L...
Theory of Computation:
• ABOUT PARNIKA TUTORIALS
Compiler Design:
• ABOUT PARNIKA TUTORIALS
Operating Systems: • PROCESS STATE DIAGRAM | LONG TERM, SH...
Databases: • ABOUT PARNIKA TUTORIALS
Computer Networks:
• ABOUT PARNIKA TUTORIALS
For GATE PYQs and much more explore:
/ parnikatutorials