run javascript on image click in a page

I would like to run Javascript code when a user click on an image in a page of my WP site.

Please tell me how to proceed.