length - web automation property

Retrieves the number of objects in a web automation collection.

Applies to:
BrowserList, ElementList, FrameList
  var len = listObj.length;
Arguments:
None.
Remarks:
Web automation collection objects use zero-based indexes. The last index in a list is length - 1.
Example:
// Display the number of the existing browser windows/tabs.
var coreObj         = new ActiveXObject("Twebst.Core");
coreObj.loadTimeout = 0;
coreObj.useRegExp   = true;

var browserList = coreObj.FindAllBrowsers("title=.*");
WScript.Echo(browserList.length);
		
See also:
BrowserList | ElementList | FrameList | item

© 2014 CodeCentrix Software. All rights reserved.