Javascript onmouseover event

have to use javascript per the direction. not sure why my onmouseover isn’t working. I’ve tried it a few different

Check for a spelling error on line 12.

thanks, I have corrected that but it is still now working

tried a new attempt, don’t really think I’m getting anywhere with this

item in your code is actually the event object, which object has a “target” attribute. It’s more common to see this variable written as event, or simply, e.

const showImg = event => {
  event.target.style.display = "block"
}

Only problem I can foresee in your program is what does one click on when the image is hidden?

This is what I ended up with, Finally works. thank you for your help

1 Like