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

95
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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