Window.prompt API doesn't work when I open local file HTML in iOS Edge.

Shunsuke Yasuda 20 Reputation points
2023-05-15T05:31:27.9066667+00:00

Window.prompt API doesn't work when I open local file HTML in iOS Edge.

What is the cause? Is there a workaround?

Microsoft Edge Microsoft Edge development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-05-16T06:37:13.42+00:00

    Hi @Shunsuke Yasuda ,

    I can replicate this issue on iOS Edge with a local HTML file. This behavior also applies to other Window APIs like

    window.confirm(), but only local HTML files are impacted.

    When I tested out window.confirm(), I found that it actually worked, but just got cancelled immediately. It can possibly mean that prompt/confirm dialog is prohibited in a local HTML file (probably out of security concerns). Meanwhile, HTML files are stored on servers work as expected.

    Unfortunately, AFAIK there's no workaround for this. You can report this issue to the Dev Team by sending feedback on Microsoft Edge.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    Best Regards,

    Shijie Li

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.