Frame.parent
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
frame.parent
Description
The parent property of the Frame object specifies the frame containing the current frame.
Example
Listing 7.281 shows a small example of how the name of the Frame parent can be accessed.
Listing 7.281 Example of the Frame.parent Property
<script language="JavaScript"> <!-- Hide function getParent(){ var parentName = parent.frameName.name; } // End Hide ---> </script> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.