APPLICATIONNAME Attribute | applicationName Property

DHTML, HTML, & CSS

APPLICATIONNAME Attribute | applicationName Property


Retrieves the name of the HTML Application (HTA).

Syntax

HTML<HTA:APPLICATION APPLICATIONNAME=sAppName>
Scripting[ sAppName = ] oHTA.applicationName

Possible Values

sAppNameString that specifies the application name.

The property is read-only with no default value.

Remarks

When set to true, the singleInstance property checks the applicationName value before launching an instance of the application. For this check to be valid, the applicationName property must have a unique value assigned to it. You can use the applicationName property to identify a single application, regardless of the URL used to access it.

Example

This example shows how to retrieve the applicationName property.

Sample Code

<HTML>
<HEAD>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
   >
   <SCRIPT>
      alert("applicationName    = " + oHTA.applicationName);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

</BODY>
</HTML>
This feature requires 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.