Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!