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

274
Views
¿Cómo cerrar la ventana emergente y redirigir a la ventana principal?

Que haya tres ventanas.

Abuelo->padre->hijo.

GrandParent abre padre y padre abre hijo.

En nuestro caso, el niño se cierra automáticamente y vuelve al padre. pero cuando el padre está cerrado, no regresa a GrandParent sino que va a otra pestaña.

Ya probé la solución de crear una función en abuelo y llamarla en padre. Pero no funciona.

 // GrandParent window.open(url) // url to open payment gateway in popup // add function in grandParent to focus on parent window when popup closes window.receiveDataFromPopup = function(data) { console.log(data) }; // Now grandparent opens parent // parent opens another popup(child) for OTP and closes after verification // Now we are at parent // call grandparent function to focus on it window.opener.receiveDataFromPopup('hola'); //close parent popup window.close()
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!