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

177
Vistas
ASP.Net Web Forms - I want to open a popup when the user leaves the page

I am using ASP.Net web forms. My goal is to ask a user a question when leaving the page. I tried using window.onbeforeunload for this. But in onbeforeunload the popup cannot be customized. I want to use my own popup too. The popup I created opens successfully. But after the popup is opened, the page closes immediately. Note: I'm trying to do it with Javascript. How do I resolve this situation?

var unSavedStatus = false;

window.onbeforeunload = SaveControl;

function SaveControl()
{
  if(unSavedStatus)
    myPopup.Show();  
}
about 4 years ago · Juan Pablo Isaza
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