Jump to content

anmartinez

Members
  • Posts

    2
  • Joined

  • Last visited

anmartinez's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hello,I have a html form, and I use a image like a button. When somebody click this image, the browser redirect you to other page. This is the code:<a href="java script:enviar()"><img name="boton" src="/pasarelatpv/img/gr_pagar.gif" border="0"></a>The function "enviar()", redirect to other page, when the image is clicked. This is the code:var pulsado = false;function enviar(){ if (!pulsado) { pulsado = true; document.pago.submit(); }}I use the variable "pulsado" to indicate that the image has been clicked, and if someone click on this image again, happen nothing. But, it isnĀ“t work fine. If somebody click on this image again, the process of redirect to another page fail, is stop.What can I do?. I want, that the efect of click on the image, only occur the first time. The rest of time, this "image-button", happen nothing.Thanks. Regards.
×
×
  • Create New...