【发布时间】:2011-03-10 11:30:38
【问题描述】:
我正在写一个网络应用程序
代码是这样的。我试图在页面加载开始时显示进度条弹出窗口。在 IE 和 firefox 中它运行良好,但在 android 浏览器中它甚至没有加载!问题出在哪里?如何调试?
<html>
<head>
<title>Mainpage</title>
<script type="text/javascript">
function modalWin() {
//alert("coming");
if (window.showModalDialog) {
window.showModalDialog("pb.html","name","dialogWidth:255px;dialogHeight:250px");
} else {
window.open('xpopupex.htm','name','height=100,width=100,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
}
}
</script>
</head>
<body onLoad=modalWin()>
<frameset rows="5%, *" border="10">
<frame src="header.html">
<frame src="footer.html">
</frameset>
</frameset>
<noframes>
You are using an old browser.
</noframes>
</body>
</html>
【问题讨论】:
-
框架集已经过时了,我想知道它是否根本不喜欢框架集。
-
弹出窗口让耶稣宝宝哭泣。
-
您是否启用了 JavaScript。看到这个developer.android.com/reference/android/webkit/…
-
@Mudassir 这是在你的 Android 应用程序中使用
WebView时使用的;我相信 OP 是在谈论 Android 上的常规网络浏览器。
标签: java javascript android