---
title: "window下的hta：本地打开html模拟ppt的全屏与退出"
author: "depravedangel"
date: "2012-07-21T20:03:32Z"
tags: []
categories: ["Web前端"]
slug: "window-hta-html-ppt"
draft: false
lastmod: "2012-07-21T20:03:32Z"
id: 1602778
url: "https://depravedangel.iteye.com/blog/1602778"
---

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="下一页" 
		onclick="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>
```