Discussion Locked

Javascript

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Dynamically how to change the src value of the frame tag with in frame set in java script

5 replies

by geoffreyc

Make sure you name the frame:

In the JavaScript use:
parent.myTop.location='Second.html';
You can use this in
The first location is for if you are calling from a different frame, and should be set to the original content if you want to keep it there.
You can use it in the same way in a

by cedric king

You don't need to change the Src value in the frame tag. You can just direct the desired page into the desired frame by pointing to it just like an element. With Javascript, write the following and runs it when you want to change the Src :
document.FrameName.location = "Desired.html"

This discussion is closed to new replies.