HBCMS更多的中文手册参考:

ICON Attribute | icon参数属性

DHTML文档教程

Sets or retrieves the name and location of the icon specified in the HTML Application (HTA).

dhtml语法

HTML<HTA:APPLICATION ICON = sIcon... >
Scripting[ sIcon = ] HTA:APPLICATION.icon

DHTML可能的值

sIconStringthat specifies an icon for the application.
System Application IconThe HTA uses the System Application Icon when nothing is specified, but the System Application Icon is not an actual value.

The property is read-only. The property has no default value.

Remarks

Note  The icon property is read-only; however, the ICON attribute can be used to set the initial value.

The icon attribute recognizes the standard 32x32 pixel Microsoft® Windows® format for .ico image files.

The HTA uses the System Application Icon when nothing is specified, but the System Application Icon is not an actual value.

DHTML代码范例

This example shows how to retrieve the icon property.

<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
ICON="graphics/face01.ico"
>
<SCRIPT>
alert ("icon    = " + oHTA.icon);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

更多语法参考

Introduction to HTML Applications (HTAs)