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;
This IE automation property can be useful if you already have a native IHTMLElement object and you need the parent Frame.
// "e" is a native HTML element.
var coreObj            = new ActiveXObject("OpenTwebst.Core");
var firstAnchorInFrame = coreObj.AttachToNativeElement(e).parentFrame.FindElement("a", "");
See also:
Element | Frame | parentBrowser | parentElement

© 2017 CodeCentrix Software. All rights reserved.