Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

103
Visualizações
Is there any way to capture the redirect URL and stop the redirection?

When I fill in credit card info and submit the payment on the live website, the transition is so fast that it does not let the purchase events execute entirely and redirect to next page. I need to stop the redirection for a while and then, after a pause, redirect user to the thank you page.

I am looking for something eg:

e.preventDefault()
var redirectURL = e.redirectURL ( this is assumption )

Note: I don't have backed access so I am using GTM to execute my scripts.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can add onsubmit event to your form element, and then add your logic to that event.

function onSubmit() {
  //TODO: Add your other logic here
  alert("The form was submitted");
}
<!DOCTYPE html>
<html>
<body>

<p>When you submit the form, a function is triggered which alerts some text.</p>

<form action="/" onsubmit="onSubmit()">
  <input type="submit" value="Submit">
</form>

</body>
</html>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda