version Property

MS Office DHTML, HTML & CSS

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.


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.