pce0
Technical User
- Jan 27, 2004
- 16
Hi all,
What is the correct way to cleanly terminate an HTA application/script?
I am using self.close however when doing so in the script below I get an access deined error when rerunning the HTA , I have noticed this only happens with the window.resizeto method (i.e. if this line is removed the error does not occur) - any ideas ?
<html>
<head>
<script language="vbscript">
sub Window_onLoad
window.resizeTo 800,600
end sub
</script>
</head>
<body>
<button STYLE="position:absolute;left:10px;top:500px">Launch Script</button><br />
<button STYLE="position:absolute;left:320px;top:500px" onclick='self.close'>Quit</button><br />
</body>
</html>
What is the correct way to cleanly terminate an HTA application/script?
I am using self.close however when doing so in the script below I get an access deined error when rerunning the HTA , I have noticed this only happens with the window.resizeto method (i.e. if this line is removed the error does not occur) - any ideas ?
<html>
<head>
<script language="vbscript">
sub Window_onLoad
window.resizeTo 800,600
end sub
</script>
</head>
<body>
<button STYLE="position:absolute;left:10px;top:500px">Launch Script</button><br />
<button STYLE="position:absolute;left:320px;top:500px" onclick='self.close'>Quit</button><br />
</body>
</html>