O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Your job is to create a handler for that event, and in it write the code to display the unblurred version of the image. Here’s how you’re going to do that:

  1. Access the image object in the DOM and assign a handler to its onclick property.

  2. In your handler, write the code to change the image src attribute from the blurred image to the unblurred one.


Cover of Head First JavaScript Programming


How to create an event handler for an object in DOM ?