在一个页面中有两个<iframe>标签,其中一个包含一个页面,在页面中单击一个<a>链接,打开的页面要求在另一个<iframe>中打开
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<iframe id="aaa" src="./tree.html" height="480" width="475">
</iframe>
包含的页面
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<a href ="http://www.sohu.com" target="dataframe"> 链接</a>
</body>
</html>
<iframe name="dataframe" height="480" width="475">
</frame>
</html>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<iframe id="aaa" src="./tree.html" height="480" width="475">
</iframe>
包含的页面
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<a href ="http://www.sohu.com" target="dataframe"> 链接</a>
</body>
</html>
<iframe name="dataframe" height="480" width="475">
</frame>
</html>