applicationname attribute | applicationName property
Sets or gets the name of the HTML Application (HTA).
This property is not supported for Windows apps using JavaScript.
Syntax
| HTML | <element applicationname="nameString" ... > |
|---|---|
| JavaScript | |
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 type="text/javascript"> alert("applicationName = " + oHTA.applicationName); </script> </head> <body scroll="no"> </body> </html>
See also
Show: