【问题标题】:How to allow popup to open when yes button is pressed from Ext.Msg.confirm?当从 Ext.Msg.confirm 按下是按钮时,如何允许弹出窗口打开?
【发布时间】:2023-04-10 17:55:01
【问题描述】:

我需要我的应用程序能够在提示符下按下“是”按钮时打开一个弹出窗口。这个我试过了,还是不行:

Ext.Msg.confirm(
    "Press for popup",
    "Do you want to proceed?",
    function(buttonId) {
        if (buttonId === 'yes') {
            window.open("http://www.w3schools.com");//Chrome says it has blocked a popup
        }
    }
);

【问题讨论】:

    标签: javascript button popup dom-events sencha-touch-2


    【解决方案1】:

    我认为您需要更改 Chrome 设置以取消阻止弹出窗口。

    【讨论】:

    • 但是使用默认设置时,直接用户事件不应该能够打开弹出窗口吗?
    猜你喜欢
    • 1970-01-01
    • 2017-06-24
    • 1970-01-01
    • 2020-02-26
    • 2018-12-18
    • 2017-10-13
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    相关资源
    最近更新 更多