name = show
target = show
就可以在指定框架中显示指定网页了
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>个人网页</title> 6 </head> 7 8 <frameset rows="25%,75%"> 9 10 <frame src="a.html"> 11 12 <frameset cols="25%,75%"> 13 <frame src="b.html"> 14 <frame src="c.html" name="show"> 15 </frameset> 16 17 </frameset> 18 </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>a.html</title> </head> <body> <h1>欢迎来到谷歌公司!</h1> </body> </html>
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>a.html</title> 6 </head> 7 8 <body> 9 <a href="wenhua.html" target="show">公司文化</a> 10 <a href="chengjiu.html" target="show">公司成就</a> 11 </body> 12 </html>
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>a.html</title> 6 </head> 7 8 <body> 9 <h1>这里是谷歌公司</h1> 10 </body> 11 </html>
formset和body不能同用。