Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

91
Visualizações
Suitable window.showModalDialog replacement when we have to pause execution of Parent page till Child process is done

I want to replace window.showModalDialog in existing code in order to make it run in edge.

In this on a button click User will be presented with a custom attachment page (Child page). when he will fill out the details and attach a file. once he attach and click on save i want the control to be back on Parent page and continue the execution.

I tried using Event listener but was not able to Pause the execution.

//Start of execution

document.getElementById("button").click();
var retVal = window.showModalDialog(url, "", WinSettings);
//stop the execution till user save the file
if (retVal == 1) {
//Some process
return true;

//Continue execution

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda