Common Event Handlers in HTML
What are the common event handlers in HTML? How can we change images using event handlers? Further can we change the height and width of the resulting picture?
What are the common event handlers in HTML? How can we change images using event handlers? Further can we change the height and width of the resulting picture?
Hi Sarah,
There are quite a number of event handlers that you can use in html. There are those that you use on in the following events:
when you click the mouse – the event handler is called 'onMouseclick'
those that you use for loading web pages or images
those that you used when you hover the mouse over a hot spot or on a web page link/url
those for selecting an input link while using a html form and those for submitting html forms
others are used for keystrokes
Some of the examples of the event handlers are: onAbort, onBlur, onClick, onMousemove. Find more examples of the event handlers and how and when they are used by accessing the link below:
https://www.w3schools.com/tags/ref_eventattributes.asp
Hope this helps.
__
Â
Regards,
Lee Hung.