`

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

    博客分类:
  • RIA
 
阅读更多

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>
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics