title: Add and Remove HTA components dynamically
body: <p>Can anybody help me how to remove textboxes dynamically in HTA?</p>
  
  <p>This code <em>adds</em> textboxes dynamically:</p>
  
  <pre><code>Sub AddTextBox
      strHTML = DataArea.InnerHTML strHTML=strHTML&amp;"&lt;tr&gt;&lt;td&gt;Source Path&lt;/td&gt;&lt;td&gt;&lt;input type="&amp;Chr(34)&amp; _ "text"&amp;Chr(34)&amp;"&gt;"&amp;"&lt;/td&gt;&lt;td&gt;&lt;button type="&amp;Chr(34)&amp;"button"&amp;Chr(34)&amp; _ "onclick="&amp;Chr(34)&amp;"RemoveTextBox"&amp;Chr(34)&amp;"&gt;"&amp;"x"&amp;"&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;"
      DataArea.InnerHTML = strHTML
      tabHTML = tabHTML &amp; strHTML
  End Sub
  </code></pre>