Skip to content
Advertisement

Image onclick event for calling function is not working for Firefox and Chrome

I have a div section in which I have an image whose onclick event should execute a function called in it, but it is not executable in Firefox or Chrome with my code, infact the image is not clickable at all . Could some one help me in get the thing done? Below is the code I am working with:

JavaScript

Advertisement

Answer

You wrote that the image is not clickable. Did you mean, that the assigned cursor did not appear?

In that case I think it’s a problem of CSS, there seems to be something hidden in front of the image.
You can use firebug as well to find out what it is.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement