Making an application with HTML

Source: Internet
Author: User
Tags format html page version window
The program looked at the headlines. One might think, how can html write an application? In fact, you simply use the. HTA to save the HTML page for the extension, which is an HTML application (HTML application), as long as you double-click it to run. However, the HTA is more than that, see one of the following standard HTML applications:

The following is a code fragment:
<HTML>
<HEAD>
<title>hta demo</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"
>
</HEAD>
<body scroll= "No" >
</BODY>
</HTML>

If you look at the HTML above, someone will find that unlike the HTML we normally see, it has a hta:application tag. This is actually the tag that provides us with a series of application-oriented features. Let me give you a detailed introduction.

ApplicationName Property (ApplicationName)

This property is used to set the name of the HTA.

Border Property (border)

This property is used to set the window border type of the HTA. The default value is thick


It can be set to:
Thick specifies that the window is a thick border
dialog window specifies a dialog box border
None specifies a window without Borders
thin specifies that the window is a narrow border

BorderStyle Property (BorderStyle)

This property sets the border format of the HTA window. The default value is normal

It can be set to:
Normal normal border format
Complex bump Format Combo border
Raised protruding 3D border
Static 3D Border format
Sunken recessed 3D border

Caption property (caption)

This property sets whether the HTA window displays a title bar or caption. The default value is Yes

Icon Property (icon)

This property sets the icon for the application.

Maximizebutton Property (Maximizebutton)

This property sets whether the Maximize button is displayed in the HTA window. The default value is Yes

Minimizebutton Property (Minimizebutton)

This property sets whether the Minimize button is displayed in the HTA window. The default value is Yes

ShowInTaskbar Property (ShowInTaskbar)

This property sets whether this application is displayed in the taskbar. The default value is Yes

SingleInstance Property (singleinstance)

This property sets whether this application can run only once. This property is identified by the ApplicationName property. The default value is no

Sysmenu Property (Sysmenu)

This property sets whether the System menu is displayed in the HTA window. The default value is Yes

Version Property (version)

This property sets the version of the application. The default value is NULL

WindowState Property (WindowState)

This property sets the initial size of the HTA window. The default value is normal

It can be set to:
Normal default size
Minmize minimization of
Maximize maximization

Note: The above brackets are the properties referenced in the script.

The above properties are read-only in the script. In addition, you can use the CommandLine property in the script to retrieve the parameters of the application when it starts.

You can also use most of the tags, scripts, and so on in your HTA.

I wish you all a "programmer".



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.