Creating Different Events
Try to solve the following exercise by using JavaScript and event handlers.
Try to use the prober way of creating event handlers!
Add id values to the HTML elements as you feel necessary.
Write the JavaScript in a seperate file.
Exercise
- Create an event handler so when you click the image above it changes from sad to glad.
- Create an event handler so when you click the button below it changes its text.
- Create an event handler so when you click the underlined word 'prober' above it changes into the word 'correct'.
- Create an event handler so when you type in characters in the text box below (use the 'keydown' event) this line changes color.