Event Listeners Solution

Getting your code to work may be a primary goal, because what good is code that doesn’t work? But besides getting it to work, you have to do a few more things:

·         Get the code to work well (performance)

·         Make the code easy to follow (readability)

·         Make the code as reusable as possible

What steps would you take to ensure that your web pages/sites achieve the objectives listed above?

Event Listeners

·         With the use of Event Listeners, create a page that implements two mouse events (e.g. click, mouseover, doubleclick, etc) and two keyboard (e.g. keydown, keyup, or keypress) events. 

NOTE: You will need to invoke the alert function or write HTML statements to signify the occurrence of each implemented events.

only code
Powered by