I have created an HTA with VBS to perform various tasks.

What command will permit me to close the active HTA?

Thanks,

Danie

Re: Close HTA by Michael

Michael
Mon Aug 15 23:09:50 CDT 2005

Daniel wrote:
> I have created an HTA with VBS to perform various tasks.
>
> What command will permit me to close the active HTA?
>

window.close

or if it is within a trusted frame/iframe...

top.close


--
Michael Harris
Microsoft MVP Scripting