1, iframeTest.html
focus: <a href="2.html" target="i">
target attribute
must be equal to <iframe src="" id="iframe1Id" name="i" width="100%"></iframe>
the name of the attribute
name of
<html>
<head>
<title>iframe test</title>
</head>
<body>
<div><iframe src="" id="iframe1Id" name="i" width="100%"></iframe></div>
<a href="2.html" target="i"> 点击 </a> <!--在div中显示2.html中的内容-->
</body>
</html>
2、2.html
<html>
<head>
<title>iframe test</title>
</head>
<body>
this is 2.html
</body>
</html>