Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Creating Your Own HTAs

Try It Yourself: Add a Check Box to an HTA

Shows how to add a pair of check boxes to an HTA. This is the answer to a Try It Yourself exercise found in Part 2 of the introductory tutorial on creating HTAs.

<title>HTA Test</title>


    Sub TestSub
        If Checkbox1.Checked Then
            Msgbox "You checked atl-dc-01."
        End If
        If Checkbox2.Checked Then
            Msgbox "You checked atl-dc-02."
        End If
    End Sub  



    <input type="checkbox" name="Checkbox1"> atl-dc-01<br>
    <input type="checkbox" name="Checkbox2"> atl-dc-02<p>
    <input id=runbutton  class="button" type="button" value="Run" name="run_button" onClick="TestSub">


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft