topWindow - web automation property
Not available in Open Twebst edition!
Returns the Win32 handle for IEFrame top window of the Internet Explorer instance represented by the current Browser object.
Applies to:
- Browser
var hwnd = browserObj.topWindow;
Arguments:
- None.
Remarks:
-
In case of an error the method throws a web macro exception and the lastError property of the core object is set as follows:
Example:
var coreObj = new ActiveXObject("Twebst.Core");
var newBrowser = coreObj.StartBrowser("http://www.codecentrix.com/");
WScript.Echo(newBrowser.topWindow);
See also:
- Browser | foregroundBrowser | ieWindow | processId | tabWindow | threadId
©
2014 CodeCentrix Software. All rights reserved.