Sets or retrieves the name and location of the icon specified in the HTML Application (HTA).
Syntax
HTML | <HTA:APPLICATION ICON
= sIcon... >
|
---|
Scripting | [ sIcon = ] HTA:APPLICATION.icon |
---|
Possible Values
sIcon | String that 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.
Example
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.
Standards Information
There is no public standard that applies to this property.
Applies To
See Also
Introduction to HTML Applications (HTAs)