Microsoft Edge | Microsoft Edge development
Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Developing and testing features or extensions for Microsoft Edge
Answer accepted by question author
The issue is not related with JavaScript in Edge. The dialog is OS level and you need to check if JavaScript is enabled in your Internet Options:

If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou