一个父窗体1.html中:
<HEAD>
<script type="text/javascript">
function wo(){
window.open('2.html'); } function smd(){
window.showModalDialog('3.html');
}
</script>
</HEAD> <BODY>
<input type="button" value="window.open" onclick="wo();">
<input type="button" value="showModalDialog" onclick="smd();">
</BODY> 现在用按钮button"window.open"打开2.html,在2.html中:
<HEAD>
<script type="text/javascript">
function aa(){
window.opener.smd();
window.close();
}
</script>
</HEAD> <BODY>
<input type="button" value="showModal" onclick="aa();">
</BODY> 触发button"showModal"后打开模式对话页面3.html,却无法关闭2.html,可是3.html就得是模式的,同时关闭2.html~~~~
请高手指点啊!!!!!!!!!
<HEAD>
<script type="text/javascript">
function wo(){
window.open('2.html'); } function smd(){
window.showModalDialog('3.html');
}
</script>
</HEAD> <BODY>
<input type="button" value="window.open" onclick="wo();">
<input type="button" value="showModalDialog" onclick="smd();">
</BODY> 现在用按钮button"window.open"打开2.html,在2.html中:
<HEAD>
<script type="text/javascript">
function aa(){
window.opener.smd();
window.close();
}
</script>
</HEAD> <BODY>
<input type="button" value="showModal" onclick="aa();">
</BODY> 触发button"showModal"后打开模式对话页面3.html,却无法关闭2.html,可是3.html就得是模式的,同时关闭2.html~~~~
请高手指点啊!!!!!!!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货