applicationname attribute | applicationName property (Internet Explorer)

Switch View :
ScriptFree
applicationname attribute | applicationName property

[This documentation is preliminary and is subject to change.]

Sets or gets the name of the HTML Application (HTA).

This property is not supported for Metro style apps using JavaScript.

Syntax

HTML<element applicationname="p" ... >
JavaScript

p = object.applicationName

Property values

Type: String

A String that specifies the application name.

Remarks

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

When set to true, the singleInstance property checks the applicationName value before it launches 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.

Examples

This example shows how to get the applicationName property.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/hta/hta_allEX.hta


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

</BODY>
</HTML>

See also

HTA:APPLICATION
Introduction to HTML Applications (HTAs)

 

 

Build date: 2/14/2012