ITeye博客

window下的hta:本地打开html模拟ppt的全屏与退出

depravedangel · 2012-07-21 20:03 · RIA · Web前端 · Markdown

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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。