HTA aplikácia je html súbor premenovaný s koncoukou .hta, spustiteľný ako stand-alone aplikácia. Príklad ako bez varovania spustíme exe súbor prostredníctvom HTA aplikácie.
<html>
<head>
<script language=”VBScript”>
Sub RunProgram
Const NORMAL_WINDOW = 1
Set objShell = CreateObject(“Shell.Application”)
objShell.ShellExecute “notepad.exe”, “c:\windows\win.ini”, , , NORMAL_WINDOW
End Sub
</script>
</head>
<body onload=”RunProgram”>
<button onclick=”RunProgram”>Run notepad</button>
</body>
</html>
