WPF webbrowser控件+抑制脚本错误+允许阻止内容

时间:2015-07-25 11:54:07

标签: wpf webbrowser-control

在wpf + webbrowser控件中显示时,显示“Allow Blocked COntent”警告信息.....

     <input type=button
               onclick="showModalDialog('C:\\Temp\\Test1.htm');"
               value="Show Me as Modal Page." />
        <BR />
        <a href="javascript:alert('I am

 shown.')">
       I should work using href.
    </a>
    <BR />
    <a href="#" 
       onclick="javascript:alert('I am shown.')">
       I should work using onclick.
    </a>

0 个答案:

没有答案