Click to return to the DHTML, HTML     
getComponentVersion Metho...     isHomePage Method     Default Behaviors Referen...    
Web Workshop  |  DHTML, HTML & CSS

isComponentInstalled Method


Retrieves whether the specified component is available.

Syntax

bInstalled = oClientCaps.isComponentInstalled(sID, sIDType [, sMinVersion])

Parameters

sIDRequired. String that specifies any of the component identifiers listed in the Detectable Components in Internet Explorer document.
sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentidActive Setup identifier of the component.
sMinVersion Optional. String that specifies the version number of the component.

Return Value

Boolean. Returns true if the component is installed and its version number is greater than or equal to the specified sMinVersion, or false otherwise.

Remarks

Only Microsoft® Internet Explorer components are detected by this method. If a component identifier of a third-party component is specified, the method returns false.

Example

This example uses the isComponentInstalled method to determine whether the Microsoft virtual machine is installed.

Sample Code

<HTML xmlns:IE>
<HEAD>
<STYLE>
@media all {
      IE\:clientCaps {behavior:url(#default#clientcaps)}
}
</STYLE>
</HEAD>

<BODY>
<IE:clientCaps ID="oClientCaps" />

<SCRIPT>
    bMSvmAvailable = oClientCaps.isComponentInstalled("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}",
    "ComponentID");
</SCRIPT>   

 :
</BODY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
clientCaps

See Also

Client Capabilities, Using DHTML Behaviors, compareVersions, getComponentVersion



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.