<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test web</title>
<script language="javascript">
window.onload=function(){
alert(window.frames.length) //弹出的值为0
};
</script>
</head><body>
<frameset rows="80 ,*" frameborder="yes" border="4" >
<frame src="nav.html" name="topFrame" id="topFrame" />
<frameset cols="140, *" frameborder="yes" border="4">
<frame src="frame1.html" name="leftFrame" id="leftFrame" />
<frame src="frame2.html" name="rightFrame" id="rightFrame" />
</frameset>
</frameset>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test web</title>
<script language="javascript">
window.onload=function(){
alert(window.frames.length) //弹出的值为0
};
</script>
</head><body>
<frameset rows="80 ,*" frameborder="yes" border="4" >
<frame src="nav.html" name="topFrame" id="topFrame" />
<frameset cols="140, *" frameborder="yes" border="4">
<frame src="frame1.html" name="leftFrame" id="leftFrame" />
<frame src="frame2.html" name="rightFrame" id="rightFrame" />
</frameset>
</frameset>
</body>
</html>
<frameset这2个东西不能同时出现<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test web</title>
<script language="javascript">
window.onload=function(){
alert(window.frames.length) //弹出的值为0
};
</script>
</head>
<frameset rows="80 ,*" frameborder="yes" border="4" >
<frame src="nav.html" name="topFrame" id="topFrame" />
<frameset cols="140, *" frameborder="yes" border="4">
<frame src="frame1.html" name="leftFrame" id="leftFrame" />
<frame src="frame2.html" name="rightFrame" id="rightFrame" />
</frameset>
</frameset></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head><frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="file:///C|/Program Files/Adobe/Adobe Dreamweaver CS3/UntitledFrame-2" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="file:///C|/Program Files/Adobe/Adobe Dreamweaver CS3/Untitled-1" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>