2
Is there any way to put an onclick event in picture? I tested with a button and is working the call to function, however, I wanted to use an image.
I tried something like:
<a href="#">
<img src="imagens/search.png" onclick="ocultaForm()">
</a>
However, it is not running the hidden functionForm(), it just redirects to #
Why don’t you do it like this:
<a href="#" onclick="ocultaForm()">
?– hugocsl
@hugocsl tried, but does not perform the function
– veroneseComS