关闭子窗口 top.frames.actionFrame.x.close();window.close();<iframe name="actionFrame".... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 好像不对哦,top是哪里来的呀以前我用的是document.actionFrame.x.close()也不对 <input type='button' onclick='window.close();parent.I2Frame.x.close();'> main.htm-----------------------------------------------------------------<html><head><title>W1</title></head><body bgcolor="#EFEFEF"><table width="100%" border="0" cellpadding="0" cellspacing="1" > <tr align="center" valign="middle"> <td height="25"><div align="left">名称<br></div></td> <td height="30" colspan="2" ><div align="left"> <IFRAME src="main1.htm" name=I2Framewidth="100%" height=30 align=default frameBorder=0 >This message is only visible to older browsers. Replace this with meaningful content!</IFRAME></div></td> </tr><tr><td><input type='button' onclick='window.close();parent.I2Frame.x.close();'></td></tr></table></body></html>main1.htm------------------------------------------------------------------------<script>var x=null;function open_onclick(){ //此函数用作打开窗口W3if(x==null)x=window.open("W3.html","W3window","width=600,height=500");else x.focus();}open_onclick();</script>----------------------------------------------------------------------我这边是可以关掉的 如果先关掉窗口W3怎么通知父窗口W3已经关掉了呢?若不通知的话再次点击W2中的打开按钮想打开W3就打开不了了.... 利用window.opener可以访问父窗口 你的按纽不能连续打开窗口是吧!在你的W3.HTML的<body>中加入使成为<body onUnload='parent.x=null;'> 你的按纽不能连续打开窗口是吧!在你的W3.HTML的<body>中加入使成为<body onUnload='opener.x=null;'> Struts2 在拦截器中想重新定向跳转地址,如何实现 一个小小的JSP问题 打开jsp 进度条走得非常慢 只定义了一个变量,getVariableInfo方法为什么会被多次调用? 请问servlet的参数传递问题,在线等 tomcat下的这页[http://127.0.0.1:8080/manager/status]的弹出对话框如何制作。 为什么我在插入数据是同时插入两条数据??? 让我们清醒一下,控诉一下大连的骗子公司! 怎样调用CSS? 用gethibernatetemplate怎么实现模糊查询 tomcat问题 怎样给textarea文本赋初值?
-----------------------------------------------------------------
<html>
<head>
<title>W1</title>
</head>
<body bgcolor="#EFEFEF">
<table width="100%" border="0" cellpadding="0" cellspacing="1" >
<tr align="center" valign="middle">
<td height="25"><div align="left">名称<br></div></td>
<td height="30" colspan="2" ><div align="left">
<IFRAME src="main1.htm" name=I2Frame
width="100%" height=30 align=default frameBorder=0 >This message is only visible to older browsers. Replace this with meaningful content!</IFRAME></div></td>
</tr>
<tr><td><input type='button' onclick='window.close();parent.I2Frame.x.close();'></td></tr>
</table>
</body>
</html>main1.htm
------------------------------------------------------------------------
<script>
var x=null;
function open_onclick(){ //此函数用作打开窗口W3
if(x==null)
x=window.open("W3.html","W3window","width=600,height=500");
else
x.focus();
}
open_onclick();
</script>
----------------------------------------------------------------------
我这边是可以关掉的
在你的W3.HTML的<body>中加入使成为
<body onUnload='parent.x=null;'>
在你的W3.HTML的<body>中加入使成为
<body onUnload='opener.x=null;'>