JavaScript alerts in an onclick in a Chrome extension popup immediately disappear

前端 未结 1 1744
既然无缘
既然无缘 2021-01-02 10:21

I\'m working on a Chrome extension, and want to use prompt() to get input from the user when they click on certain elements. Unfortunately, for some reason, I can\'t get pr

相关标签:
1条回答
  • 2021-01-02 10:27

    Alerts/prompts are not working inside popups (see this bug report for details). You need to find alternate solution (use html form instead).

    0 讨论(0)
提交回复
热议问题