Microsoft Scriptlet TechnologyMicrosoft Scriptlet Technology*
*Contents  *Index  *Topic Contents

version Property

Returns the version and platform of the scriptlet container object DLL.

Applies To

Scriptlet

Syntax

version = window.external.version

Remarks

This property is read-only. Version is returned in the format N.nnnn platform where N is an integer representing the major version number, nnnn is any number of characters (except a space) representing the minor version number, and platform is the platform (win32, mac, alpha, and so on). The following is an example version number:

1.0a win32

You can use the version property to determine whether the page is being used as a scriptlet or as a standalone Web page. Use a statement such as the following:

controlMode = ( typeof( window.external.version) == "string" )

If the value of controlMode is true after this statement has executed, the page is being used as a scriptlet. Otherwise the page is being used as a standalone page.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.