![](/img/trans.png)
[英]How to prevent IE from showing “Internet Explorer restricted this webpage from running scripts …” message when opening just a text file?
[英]How to prevent a new window from opening in hosted Internet Explorer
我在CAxWindow ATL類中托管Internet Explorer實例(Web控件)。 如何防止網站可以從托管的IE打開新窗口? 我已經在設置IDocHostUIHandlerDispatch的實現以禁用上下文菜單。
WebBrowser ActiveX控件上有一個事件,用於顯示您需要監聽和取消的新窗口(NewWindow,NewWindow2,NewWindow3)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.