Event:
Html events are the things that happens to Html Elements.
An event is an action or occurence that happens when the page loads or an Html button was clicked.
A javascript can be executed when an event occurs, like when a user clicks on an Html event.
Mouse Over:
When ever the user mouse over a paragraph or a heading or some information then an event is fired by changing the color of that text or font of the text etc.
EX:
Code:
OUTPUT:
Load Event:
It will fire after the page completes its loading.
Click Event:
It will fire whenever the user click the button.
Keyboard Event:
It will fire when ever the user enter the keys from the key board.
EX:
Code:
OUTPUT:
Normal Login Form:
When Mouse over the login text
When focus on the first text box
When focus out from the first text box
When submitting the form
Html events are the things that happens to Html Elements.
An event is an action or occurence that happens when the page loads or an Html button was clicked.
A javascript can be executed when an event occurs, like when a user clicks on an Html event.
Mouse Over:
When ever the user mouse over a paragraph or a heading or some information then an event is fired by changing the color of that text or font of the text etc.
EX:
Code:
OUTPUT:
Load Event:
It will fire after the page completes its loading.
Click Event:
It will fire whenever the user click the button.
Keyboard Event:
It will fire when ever the user enter the keys from the key board.
EX:
Code:
OUTPUT:
Normal Login Form:
When Mouse over the login text
When focus on the first text box
When focus out from the first text box
When submitting the form