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

171
Views
Formularios web ASP.Net: quiero abrir una ventana emergente cuando el usuario abandona la página

Estoy usando formularios web ASP.Net. Mi objetivo es hacerle una pregunta a un usuario al salir de la página. Intenté usar window.onbeforeunload para esto. Pero en onbeforeunload, la ventana emergente no se puede personalizar. Quiero usar mi propia ventana emergente también. La ventana emergente que creé se abre correctamente. Pero después de abrir la ventana emergente, la página se cierra inmediatamente. Nota: estoy tratando de hacerlo con Javascript. ¿Cómo resuelvo esta situación?

 var unSavedStatus = false; window.onbeforeunload = SaveControl; function SaveControl() { if(unSavedStatus) myPopup.Show(); }
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!