1. Home
  2. Computing & Technology
  3. JavaScript

Parent

By Stephen Chapman, About.com

Definition: When you are using frames or iframes then a relationship exists between the various pages that make up what is being displayed on the screen. Where one page contains another that page is the parent of the other page. This is not a reserved word so you can declare your own variable or function called parent but if you do then you will not be able to reference the parent page from within a page contained within a frame.
Examples:
parent.location.href = 'index.html';
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.