Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

parent

The parent property of the Window object returns the parent window object of the active window. If an embedded window or iframe object that you are targeting has no parent window, that window is returned as the parent window object.

Syntaxwindow.parent
alert( window.parent.location );

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined