HBCMS更多的中文手册参考:

SINGLEINSTANCE Attribute | singleInstance参数属性

DHTML文档教程

Sets or retrieves a value that indicates whether only one instance of the specified HTML Application (HTA) can run at a time.

dhtml语法

HTML<HTA:APPLICATION SINGLEINSTANCE = bOpen... >
Scripting[ bOpen = ] HTA:APPLICATION.singleInstance

DHTML可能的值

bOpenBooleanthat specifies one of the following values:
yesOnly one instance of the specified application can run at a time.
noDefault. Multiple instances of the specified application can run at the same time.

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

Remarks

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

When set to true, the singleInstance property checks the value of the applicationname property 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.

DHTML代码范例

This example shows how to retrieve the singleInstance property.

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

是否符合公共标准

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

更多语法参考

Introduction to HTML Applications (HTAs)