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

425
Views
Actualizar la ventana principal desde la ventana secundaria usando javascript

Estoy abriendo una nueva página emergente en una nueva ventana. Ahora, cuando presiono un botón de entrada html desde la ventana secundaria, quiero cerrar esta ventana secundaria y luego actualizar la ventana principal. ¿Cómo puedo hacer usando javascript?

¿Alguien puede sugerirme la solución?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

prueba algo como esto:

 function closeAndRefresh(){ opener.location.reload(); // or opener.location.href = opener.location.href; window.close(); // or self.close(); }
over 4 years ago · Santiago Trujillo Report

0

podrías probar esto en tu ventana secundaria:

 function refreshParent() { window.opener.location.href = window.opener.location.href; if (window.opener.progressWindow) { window.opener.progressWindow.close() } window.close(); }
over 4 years ago · Santiago Trujillo Report

0

probé el código

 window.close(); if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

Esta funcionando..

over 4 years ago · Santiago Trujillo Report
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!