filmov
tv
JavaScript Tutorial in Hindi for Beginners [Part 62] - Events on Form in JavaScript
![preview_player](https://i.ytimg.com/vi/WFM1iFHy73M/maxresdefault.jpg)
Показать описание
#Javascript #Tutorial #Hindi
In this video i will talk about Events on Form in JavaScript.
The onfocus event occurs when an element gets focus.
The onfocus event is similar to the onfocusin event. The main difference is that the onfocus event does not bubble. Therefore, if you want to find out whether an element or its child gets the focus, you could use the onfocusin event. However, you can achieve this by using the optional useCapture parameter of the addEventListener() method for the onfocus event.
The blur event fires when an element has lost focus.
The oninput event occurs when an element gets user input.
This event occurs when the value of an input or textarea element is changed.
Tip: This event is similar to the onchange event. The difference is that the oninput event occurs immediately after the value of an element has changed, while onchange occurs when the element loses focus, after the content has been changed. The other difference is that the onchange event also works on select elements.
Join this channel to support Tech Gun:
In this video i will talk about Events on Form in JavaScript.
The onfocus event occurs when an element gets focus.
The onfocus event is similar to the onfocusin event. The main difference is that the onfocus event does not bubble. Therefore, if you want to find out whether an element or its child gets the focus, you could use the onfocusin event. However, you can achieve this by using the optional useCapture parameter of the addEventListener() method for the onfocus event.
The blur event fires when an element has lost focus.
The oninput event occurs when an element gets user input.
This event occurs when the value of an input or textarea element is changed.
Tip: This event is similar to the onchange event. The difference is that the oninput event occurs immediately after the value of an element has changed, while onchange occurs when the element loses focus, after the content has been changed. The other difference is that the onchange event also works on select elements.
Join this channel to support Tech Gun:
Комментарии