<html>
<head>
<meta http-equiv=Content-Type content="text/html;charset=GB2312" />
<title>test</title>
</head>
<script LANGUAGE="JavaScript">
window.status='';
function autoRedirect(){
document.getElementById("mainframe").src="http://www.test.info";
}
//autoRedirect();
setTimeout("autoRedirect()", 1000);
</script>
<frameset rows="0,*" framespacing="0" border="0" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="">
<frame id="mainframe" name="main" src="http://www.test.info/?intr=29092" scrolling="auto">
<noframes>
<body>
<p></p>
</body>
</noframes>
</frameset>
</html>
<head>
<meta http-equiv=Content-Type content="text/html;charset=GB2312" />
<title>test</title>
</head>
<script LANGUAGE="JavaScript">
window.status='';
function autoRedirect(){
document.getElementById("mainframe").src="http://www.test.info";
}
//autoRedirect();
setTimeout("autoRedirect()", 1000);
</script>
<frameset rows="0,*" framespacing="0" border="0" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="">
<frame id="mainframe" name="main" src="http://www.test.info/?intr=29092" scrolling="auto">
<noframes>
<body>
<p></p>
</body>
</noframes>
</frameset>
</html>
本文介绍了一个使用JavaScript实现页面自动重定向的例子,并通过HTML的frameset元素设置了页面布局。主要内容包括设置页面状态、使用setTimeout延迟执行函数实现重定向以及通过frame元素加载不同URL的内容。

768

被折叠的 条评论
为什么被折叠?



