Microsoft HTA/Window styles and attributes

HTA has a variety of different attributes for styling the page. You already know about the  attribute from the last part of the tutorial, so it should be easy to learn the other attributes. Most attributes are booleans where "yes" is true and "no" is false, but others accept multiple options. Surround all attribute values in double quotes.

Functional attributes
There are multiple attributes which can modify the window's function.


 * : Sets an ID for the HTA program. This attribute's uses will be explained later on.
 * : Determines whether clicking the right mouse button will show the context menu.
 * : Determines whether the minimize button is shown or not.
 * : Determines whether the maximize button is shown or not.
 * : Determines whether the scroll bar is shown or not.
 * : Determines whether a linked page loads in the HTA window or in a new browser window.
 * : Sets the version of the HTA application.
 * : Determines whether the text in the window can be selected or not.
 * : Determines whether the application can only have a single instance running or not.
 * : Determines whether the application shows in the taskbar.

Style attributes
Most other attributes are related to the window's style.


 * : Sets the program's title.
 * : Sets the program's icon. Accepts the name of an .ico file located in the same folder as the HTA program.
 * : Determines whether the program displays a title bar or not.
 * : Determines which border type the window has. Options: thick, thin, dialog, none.
 * : Determines which border style the window has. Options: normal, raised, sunken, static, complex.
 * : Determines whether the inner border shows or not.
 * : Determines whether the scroll bar is flat or 3D.
 * : Sets the initial size of the window. Options: maximize, minimize.

Using attributes
Attributes are simple to use: just put them in the  element like this: