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

124
Views
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 answers
Answer question

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 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!