What is an HTA (HTML application) _hta

Source: Internet
Author: User

HTA is the abbreviation of HTML Application (HTML application), is a new concept of software development, directly to save the HTML into the HTA format, is an independent application software, and VB, C + + and other programming language design software interface is no different.

In general, an HTA can be written in VBScript and JScript, and the VBS feature is more powerful, after all, Microsoft's own stuff. HTA can operate the database, the interface can be realized with html+css, it is very convenient to write some simple application.

At present, the cloud habitat community for everyone to organize some good examples of HTA, like friends can come here (http://www.jb51.net/list/list_110_1.htm) to view.

HTA instance
Here's an example of an HTA:

Copy Code code as follows:

<title>; example of the first HTA </title>
<style>
p {Font-size:24;cursor:hand}
</style>
<body>
<center>
<p>
HTA
HTML Application
HTML Application
</p>
</center>
</body>

Copy the above code into any text editor and save it as *.hta, and you can see the effect directly by double-clicking it.
HTA Properties
The HTA is similar to a normal web page structure, so it's easy to design, and of course the HTA has many of its own unique attributes:
The requirements of the grammar
An HTA requires more syntax than HTML, and even tags like

Note: The above is all the code for the entire HTA file.

The look of an HTA
You can use <HTA:Application>; to set the appearance of your HTA application, such as the title bar, border size, and so on, which must be in

Copy Code code as follows:

<title>; example of the first HTA </title>
Applicationname= "MYAPP"
Border= "Thin"
Borderstyle= "Normal"
caption= "Yes"
icon= "Filename.ico"
maximizebutton= "Yes"
minimizebutton= "Yes"
Showintaskbar= "No"
Singleinstance= "No"
sysmenu= "Yes"
Version= "1.0"
Windowstate= "Normal"
Scroll= "Yes" >
<body>
<center>
HTA
HTML Application
HTML Application
<button onclick= "Self.close ()" style= "font-size:18" >; leave </button>
</center>
</body>

Attribute Description:

ApplicationName Property (ApplicationName)
This property sets the name of the HTA.
Border Property (border)
This property is a window border type set to an HTA and the default value is thick.
It can be set to thick specifies that the window is a thick Border
Dialog window specifies that the dialog box
None specifies a window has no border
thin the specified window is a narrow border
BorderStyle property (BorderStyle)
This property sets the border format for the HTA window, and the default is normal.
It can be set to

Normal normal border format
Complex bump Format combo Border
raised extruded 3D border
Static 3D border format
Sunken recessed 3D Border
Caption Properties (caption)
This property sets whether the HTA window displays a title bar or caption, and the default value is yes.
Icon Property (icon)
This property sets the icon for the application.
Maⅺmizebutton Property (Maximizebutton)
This property sets whether the Maximize button is displayed in the HTA window, and the default value is yes.
Minimizebutton Property (Minimizebutton)
This property sets whether the minimized button is displayed in the HTA window, and the default value is yes.
ShowInTaskbar Property (ShowInTaskbar)
This property indicates whether this application is displayed in the taskbar, and the default value is yes.
SingleInstance Property (singleinstance)
This property is set whether this application can run only once. The secondary property is identified with the ApplicationName property, and the default value is No.
Sysmenu Property (Sysmenu)
This property sets whether the System menu is displayed in the HTA window, and the default value is yes.
Version Property (version)
This property sets the version of the application and the default value is null.
WindowState Property (WindowState)
This property sets the initial size of the HTA window, and the default value is normal.
It can be set to normal default size
Minimize the
Maximize maximized
Scroll property (Scroll)
This property displays a vertical scroll bar at the right end and the default is yes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.