Reputation: 314
When run the same on Microsoft edge I am able to see it. What do I need to change in the settings of Chrome browser?enter image description here
This is my code:
alert("Hello from the JS file");
var age;
var ageroot;
age=prompt("Enter your age");
Upvotes: 1
Views: 1582
Reputation: 314
The issue has been mentioned here: https://productforums.google.com/forum/#!topic/chrome/drS39waj6ik;context-place=topicsearchin/chrome/Prevent$20this$20page$20from$20creating$20additional$20dialogs
And a bug is reported for the same: https://bugs.chromium.org/p/chromium/issues/detail?id=721138
Upvotes: 1
Reputation: 23859
Alert and Prompt boxes have native implementation on every browser, and are not customizable by using JavaScript or CSS.
So, Chrome doesn't have this checkbox in its implementation, while Edge has it. Also, it is completely in the hand of the browser to prevent such boxes in future.
Upvotes: 0