Sample HTML code for adding a listbox to a Web page or HTA.

Visual Basic
Edit|Remove
<select size="3" name="Listbox1" onChange="RunScript">
    <option value="1">Option 1</option>
    <option value="2">Option 2</option>
    <option value="3">Option 3</option>
    <option value="4">Option 4</option>
</select>