0
我有以下幾點:WP7瀏覽器控件將不會調用JavaScript錯誤80020101
public MainPage()
{
webBrowser1.ScriptNotify += new EventHandler<NotifyEventArgs>(webBrowser1_ScriptNotify);
}
void webBrowser1_ScriptNotify(object sender, NotifyEventArgs e)
{
// ... some code ...
webBrowser1.InvokeScript("nativeCallback", response.Serialize());
}
腳本通知,當用戶按下網頁上的按鈕被觸發。我想調用下面的JavaScript,但我不斷收到錯誤80020101.
<script type="text/javascript">
function nativeCallback(e){
document.getElementById('callbackDiv').appendChild("<b>" + e + "</b>");
}
</script>