topFrame - web automation property

Retrieves the topmost ancestor Frame object in the frames DOM hierarchy of the Browser bypassing cross-domain scripting security restrictions.

Applies to:
Browser
  var frame = browserObj.topFrame;
Arguments:
None.
Remarks:
In case of failure this web automation property throws a script exception and the lastError property of the Core object is set to FAIL_ERROR.
Example:
var coreObj    = new ActiveXObject("OpenTwebst.Core");
var newBrowser = coreObj.StartBrowser("http://codecentrix.blogspot.com/");
var frame      = newBrowser.topFrame;
frame.nativeFrame.navigate("http://www.codecentrix.com/");
		
See also:
Browser | Frame | FindFrame | nativeFrame

© 2017 CodeCentrix Software. All rights reserved.