62,046
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<frameset rows="46,*" framespacing="0" frameborder="no" border="0" noResize scrolling="no">
<frame name="banner" src="WebForm_logo.aspx" noResize scrolling="no"/>
<frameset id="frame" cols="7,156,7,*,7" framespacing="0" frameborder="no" border="0" name="frame" noResize scrolling="no">
<frame name="left" id="left" noresize src="leftframe.aspx" scrolling="no">
<frame name="Menu" id="Menu" noresize src="Menu.aspx">
<frame name="border" id="border" scrolling="no" noresize src="middle.aspx">
<frame name="main" id="main" src="<%=MainUrl %>">
<frame name="right" id="right" scrolling="no" noresize src="rightframe.aspx">
</frameset>
</frameset>
</head>
<body>
</body>
</html>
function clearFrame(){
var frame = window.parent.document.getElementById("main");
frame.src = 'about:blank';
frame.contentWindow.document.write('');//清空frame的内容
frame.contentWindow.document.clear();
frame.contentWindow.close();//避免frame内存泄漏
frame.parentNode.removeChild(frame);
CollectGarbage();
var newIfm = window.parent.document.createElement('frame');
newIfm.id = 'main';
newIfm.name = 'main';
var c = window.parent.document.getElementById("right");
c.insertBefore(newIfm);
}