www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 applicationName Property
APPLICATIONNAME Attribute | applicationName Property

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

Syntax

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

Possible Values

sAppName A String that specifies the application name.

The property is read-only. The property has no default value.

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.

Example

This example shows how to get the applicationName property.

<HTML>
<HEAD>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
   >
   <SCRIPT>
      alert("applicationName    = " + oHTA.applicationName);
   </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

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG