Creating Your Own HTAs
Shows how to add a password box to an HTA. This is the answer to a Try It Yourself exercise found in Part 2 of the introductory tutorial on creating HTAs.
<html>
<head>
<title>HTA Test</title>
<HTA:APPLICATION
ID="objTest"
APPLICATIONNAME="HTA Test"
SCROLL="yes"
SINGLEINSTANCE="yes"
>
</head>
<SCRIPT LANGUAGE="VBScript">
Sub TestSub
Msgbox PasswordArea.Value
End Sub
</SCRIPT>
<body>
<input type="password" name="PasswordArea" size="30"><P>
<input id=runbutton class="button" type="button" value="Run Script" name="run_button" onClick="TestSub">
</body>