如何外部连接框架中的网页

来源:百度知道 编辑:UC知道 时间:2024/06/04 21:01:38
如题
通过主页index.htm的一个连接到book.htm
book.htm要在fenlei.htm的框架中显示
book.htm一定要带着框架

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript>
<!--
function Transfer()
{
if(window==top)
{
alert(1);
top.location.href = "index.htm";
return false;
}
return true;
}

-->
</script>
</head>
<body onload="Transfer()">
this page is book.htm
</body>
</html>