Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Form Events

              form के ऊपर कोई activity करना हो या कोई trigger fire करना हो तो form events लिखी जाती है और इसे form tag के अंदर लिखी जाती है।

i. onfocus() event : form element में जब किसी input field के ऊपर mouse हो तो उस समय onfocus event fire होता है।

ii. onblur() event : form element में किसी element पे focus करके उसके बाद mouse हटा दिया जाता है उस समय onblur event fire होता है।

iii. onsubmit() event : जब user form को submit करेगा तब onsubmit पर वह event को perfom करा सकते है।

iv. onchange() event : जब किसी input element की state change होता है जैसे की dropdown list में जब हम कोई option select करतें हैं या फिर radio button पे click करते हैं उस समय onchange event fire होता है।

 

 

Form Events

               If any activity has to be done on the form or any trigger has to be fired, then form events are written and it is written inside the form tag.

i. onfocus() event : When the mouse is over any input field in the form element, the onfocus event fires.

ii. onblur() event : By focusing on an element in the form element and then removing the mouse, the onblur event fires.

iii. onsubmit() event : When the user submits the form, he can perform the onsubmit event.

iv. onchange() event : When the state of an input element changes, such as when we select an option in a dropdown list or click on a radio button, the onchange event fires.

error: Content is protected !!