有几种实现方式,最简单的一种是建一个临时页面作为你的第一个页面,由它打开你的主页面
<!--index.htm-->
<script language="Javascript">
window.open("index.htm","","height=300,width=400,resize=no");
window.opener="";
window.close();
</script><!--main.htm-->
<body>
这是我的主页面!
</body>
<!--index.htm-->
<script language="Javascript">
window.open("index.htm","","height=300,width=400,resize=no");
window.opener="";
window.close();
</script><!--main.htm-->
<body>
这是我的主页面!
</body>
window.open("main.htm","","height=300,width=400,resize=no");
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>window.moveTo(0, 0);//移动窗口window.resizeTo(800, 600);//改变大小window.onresize=new Function("window.resizeTo(800, 600);")</script>
</head><body></body>
</html>