index.hta
<html>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
WINDOWSTATE="maximize"
caption="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<body scroll=no>
<iframe frameborder="0" id="client" name="client" scrolling="no"
src="first.html" width="100%" height="100%" application="yes"></iframe>
</body>
</html>
first.html
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<body>
<input type="BUTTON" value="下一页"
οnclick="window.location.href='close.html'"/>
</body>
</html>
close.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test</title>
</head>
<body>
<input type="button" value="退出"
onClick="javascript:top.window.close();">
</body>
</html>