ICON Attribute | icon Property

DHTML, HTML, & CSS

ICON Attribute | icon Property


Retrieves the name and location of the icon specified in the HTML Application (HTA).

Syntax

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

Possible Values

sIconString that specifies an icon for the application.

The property is read-only with a default value of the system application icon.

Remarks

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

Example

This example shows how to retrieve the icon property.

Sample Code

<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 icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
HTA:APPLICATION

See Also

html applications overviewInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.