我在離子應用程序中使用 iframe 作為支付頁面。單擊 iframe 內的提交 (Senden) 按鈕后:帶有瀏覽器的彈出窗口如下所示:如何防止出現此彈出窗口?targer="_self"我在iframe中使用。但它不起作用。
1 回答

慕容708150
TA貢獻1831條經驗 獲得超4個贊
我已經allow-popups allow-top-navigation
從sandbox
的屬性中刪除了iframe
。
修復前的 iframe:
<iframe #iframe id="iframe" frameborder="0" [src]="url" style="width:100%; border:none;" sandbox="allow-popups allow-top-navigation allow-presentation allow-scripts allow-pointer-lock allow-same-origin allow-forms"> </iframe>
現在 iframe:
<iframe #iframe id="iframe" frameborder="0" [src]="url" style="width:100%; border:none;" sandbox="allow-presentation allow-scripts allow-pointer-lock allow-same-origin allow-forms"> </iframe>
- 1 回答
- 0 關注
- 101 瀏覽
添加回答
舉報
0/150
提交
取消