Friday, September 28, 2018

Javascript: Event handlers

In the year 2016 we studied the module “Introduction to Scripting” with subject Code ICT 205. From this module we studied about event handlers which is one of my favorite topics being taught in that module.

An event handler is a predefined JavaScript keyword that is used to handle an event on a web page. Often, an event is something that happens when the viewer of the page performs some sort of action, such as clicking a mouse button, clicking a button on the page, changing the contents of a form element, or moving the mouse over a link on the page.

When the events like these occur, we are able to use JavaScript event handlers to identify them then perform specific task or set of tasks. JavaScript enables us to react to an action by the viewer and to make scripts that are interactive, and more useful to us.

We learned how to create rollover on the web pages (animation) on power point as follows:


And the output is attached below in the link
Similarly I used other event handlers such as onClick designed in the document attached below




No comments:

Post a Comment