亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

阻止 Ionic App iframe 中的瀏覽器選擇器 - 阻止打開外部瀏覽器

阻止 Ionic App iframe 中的瀏覽器選擇器 - 阻止打開外部瀏覽器

函數式編程 2023-09-18 10:30:53
我在離子應用程序中使用 iframe 作為支付頁面。單擊 iframe 內的提交 (Senden) 按鈕后:帶有瀏覽器的彈出窗口如下所示:如何防止出現此彈出窗口?targer="_self"我在iframe中使用。但它不起作用。
查看完整描述

1 回答

?
慕容708150

TA貢獻1831條經驗 獲得超4個贊

我已經allow-popups allow-top-navigationsandbox的屬性中刪除了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>



查看完整回答
反對 回復 2023-09-18
  • 1 回答
  • 0 關注
  • 101 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號