Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Browsers
Expertise: Beginner
Nov 3, 1999



Application Security Testing: An Integral Part of DevOps

Dynamically Load a Page From a Frame Into Another


Is there a way I can load a Web page from the top frame into the bottom frame, when a user clicks on a link in the bottom frame? The page should be dynamic as to load whatever page is loaded in the top frame.


You can change the content of a frame at any time, by referencing the name of the frame from the parent (the parenting window). If you create a frame page as follows:

  You must use a browser that can display frames 
  to see this page. 

You can use a function similar to the following to change frame contents of toptoc:

function test() {

You can skip the "href" reference. To assign the contents of one frame to another, you can do something like:

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date