## DFrame: getParentDFrame

Returns the parent of the DFrame

Can be:

· null value if the DFrame was not created on a DFrame:

baseAll = new DFrame([0, 0, 100, 100], dFrameStyle)

alert(baseAll.getParentDFrame()) //returns null

· The DFrame on which the DFrame was created

baseAll = new DFrame([0, 0, 100, 100], dFrameStyle)

dFrame = new DFrame([0, 0, 100, 100], baseAll, dFrameStyle)

alert(dFrame.getParentDFrame()) //returns baseAll

· IE and NS6 only: The DFrame in which a file using dFrameAPI was loaded:

baseAll = new DFrame([0, 0, 100, 100], dFrameStyle)

baseAll.setURL(someFile.html)

someFile.html includes DFrameAPI. Code in someFile.html:

dFrame = new DFrame([0, 0, 100, 100], dFrameStyle)

alert(dFrame.getParentDFrame()) //returns baseAll

Demo

file: getParentDFrame.html

Run the example
See the source code

### Syntax

dFrame.getParentDFrame()

### Parameters

No parameters.

### Return value

A DFrame object.