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

137
Visualizações
alert and confirm boxes do not appear

I have a couple of webpages which i in part build up dynamically (php and JavaScript).

Everything used to work well in the past, but now the various calls to alert and confirm do not cause dialog boxes to appear anymore.

Using the JavaScript debugger in firefox i can verify, for example, that the statement

var r = confirm("Do you really want to save this data?");

is executed, but no dialog window is opened, and the code goes on as if i had pressed "no" (in this step the watch expression for r changes from "undefined" to "false").

The same happens for calls to alert - the code is executed, but no dialog window is shown.

I have not checked these pages in a while, which means there have been various software updates since then.

Strangely however, this seems not to be a browser-wide effect: a different set of similarly built pages does not show this behavior - there, the dialog boxes are shown.

Is it possible that there is some setting in JavaScript or php which prevents dialogs from opening?

Does anybody have an idea how to fix this problem?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I had the same problem before and my problem was solved with the following code. You try it too, maybe it will help you too.

let r = window.confirm("Do you really want to save this data?");
about 4 years ago · Juan Pablo Isaza Relatório
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