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可能的值
sIcon | Stringthat specifies an icon for the application.System Application Icon | The 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
更多语法参考
Introduction to HTML Applications (HTAs)