commandLine Property Internet Development Index --------------------------------------------------------------------------------Retrieves the argument used to launch the HTML Application (HTA).SyntaxHTML N/A
Scripting [ sPath = ] HTA:APPLICATION.commandLine Possible ValuessPath String that specifies the path and arguments used to launch the HTA. The property is read-only. The property has no default value.ResThe commandLine property returns an empty string when the HTA is launched over the HTTP protocol.ExampleThis example shows how to retrieve the commandLine property value.Hide Example<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
>
<SCRIPT>
alert("commandLine = " + oHTA.commandLine);
</SCRIPT>
</HEAD>
<BODY SCROLL="no"></BODY>
</HTML>
Show Me
Standards InformationThere is no public standard that applies to this property. Applies To[ Object Name ]
Platform Version
Win32:
Windows CE:
Version data is listed when the mouse hovers over a link, or the link has focus.
HTA:APPLICATION
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. See AlsoIntroduction to HTML Applications (HTAs)
Scripting [ sPath = ] HTA:APPLICATION.commandLine Possible ValuessPath String that specifies the path and arguments used to launch the HTA. The property is read-only. The property has no default value.ResThe commandLine property returns an empty string when the HTA is launched over the HTTP protocol.ExampleThis example shows how to retrieve the commandLine property value.Hide Example<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
>
<SCRIPT>
alert("commandLine = " + oHTA.commandLine);
</SCRIPT>
</HEAD>
<BODY SCROLL="no"></BODY>
</HTML>
Show Me
Standards InformationThere is no public standard that applies to this property. Applies To[ Object Name ]
Platform Version
Win32:
Windows CE:
Version data is listed when the mouse hovers over a link, or the link has focus.
HTA:APPLICATION
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. See AlsoIntroduction to HTML Applications (HTAs)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货