问题描述
有2段代码。 Main通过模式对话框打开子窗体。当子窗体上的按钮与主窗体上的按钮重合时,我双击子窗体上的按钮。主窗体上的按钮也被按下。
/// main.html
<html>
<head>
<script type="text/javascript">
function showSub() {
window.showModalDialog('sub.html',window,"dialogWidth:200px;dialogHeight:100px;");
}
</script>
</head>
<body>
<input type="button" value="modal dialog" onclick="showSub();">
</body>
</html>
/// sub.html
<html>
<head>
<script type="text/javascript">
function closeWindow() {
window.close();
}
</script>
</head>
<body>
<input type="button" value="close" onclick="closeWindow();">
</body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)