Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
How to redirect to another site after captcha is succcessfully completed

I am using Google reCAPTCHA on my site. If the captcha is success I want to redirect to another website.

The code I used is:

    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script type="text/javascript">
  if (grecaptcha.getResponse() == "success") {
    function Redirect() {
      window.location = "example.com";
    }
    document.write("You will be
      redirected to a new page in 5 seconds ");      setTimeout('Redirect()',
      1000);
  }
  } else {
    alert("You can't proceed!");
</script>

<body>
  <div data-type="image" class="g-recaptcha" data-sitekey="public site key"></div>
</body>

But it's not working.

Edited

I just don't understand JavaScript much . That's why I was asking and still don't understand it . What it means and what does I have to do with it. https://www.google.com/recaptcha/api/siteverify Can you give me an example of whole code

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda