|
var passTime=self.parent.window.frames["childMainFrame"];
-------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!--
style="border: 0px solid red;"
-->
</head>
<frameset
border="1"
framespacing="0"
style="border: 0px solid red;"
rows="100,*,50">
<frame
frameborder="1"
bordercolor="red"
id="topFrame"
name="topFrame"
scrolling="no"
noresize="noresize"
src="top.html"
style="border-bottom: solid blue 1px;"
>
<frameset
border="1"
framespacing="0"
style="border: 0px solid red;"
cols="150,*">
<frame
frameborder="1"
bordercolor="red"
id="leftFrame"
name="leftFrame"
noresize="noresize"
src="left.html"
title="left"
style="border-right: solid blue 1px"
>
<frame
frameborder="1"
bordercolor="red"
src="main.html"
id="mainFrame"
noresize="noresize"
name="mainFrame"
title="main"
>
</frameset>
<frame
frameborder="1"
bordercolor="red"
noresize="noresize"
name="bottomFrame"
src="bottom.html"
style="border-top: solid blue 1px"
>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
-------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>left page</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<script type="text/javascript">
function link(){
alert(":"+parent.window.frames["topFrame"]);
alert(self.parent.window.frames["mainFrame"].document.getElementById("info").value);
}
</script>
<body>
<a href="view.html" target="topFrame">查看</a>
<br />
<input type="button" value="link" >
<br />
<a href="logout.html" target="mainFrame">退出</a>
</body>
</html> |
|