parentFrame - web automation propety

IE automation property that returns the parent Frame object of the current Element or Frame. Returns null if the current frame/iframe has no parent because is the top frame in DOM hierarchy.

Applies to:
Element, Frame
  var f = obj.parentFrame;
Arguments:
None.
Remarks:
This IE automation property can be useful if you already have a native IHTMLElement object and you need the parent Frame.
Example:
// "e" is a native HTML element.
var coreObj            = new ActiveXObject("Twebst.Core");
var firstAnchorInFrame = coreObj.AttachToNativeElement(e).parentFrame.FindElement("a");
		
See also:
Element | Frame | parentBrowser | parentElement

© 2014 CodeCentrix Software. All rights reserved.