Question: Hi, I am trying to write a javascript code so that when I click on the image called smileyFace.png the message alert you clicked on

Hi,

I am trying to write a javascript code so that when I click on the image called smileyFace.png the message alert "you clicked on the smaileyFace picture" is displayed.

My code is below. It does not work. Could you please keep it as simple as possible and use

tags, onclick and getElementById

Please keep it simple as I am new to javascript

Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!