我正在尝试使用 WP7 中的 Web 浏览器控件在网页中使用 javascript 显示警报框。没有弹出警报。代码有什么问题还是 WP7 根本不支持它?
<phone:WebBrowser Name="browser" IsScriptEnabled="True" ScriptNotify="browser_ScriptNotify" Source="Default.html"/>
Default.html 内部
<html><br>
<head><br>
</head><br>
<body onload="onLoad()"><br>
<script type="text/javascript"><br>
function onLoad() {<br>
alert("hello");<br>
}<br>
</script><br>
</body><br>
</html>