Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update two frames from a menu option 1

Status
Not open for further replies.

lap944

Programmer
Jul 24, 2001
4
US
I need to to put htm code into two different frames from a single mouse click or menu option. I can do one but I'm having problems getting my code to show/display in the second frame.
 
the way to update one single frame :
<a href=&quot;page_name.htm&quot; target=&quot;frame_name&quot;>link</a> this will display page_name.htm in the frame &quot;frame_name&quot; (provided the current frame and frame_name are at the same &quot;level&quot;)

the way to update n frames at the same time :
<a href=&quot;javascript:load_frames()&quot;>link</a> this calls the javascript 'load_frame' function

now define the function
load_frames() {
top.frame_name1.location = page_name1.htm
top.frame_name2.location.href = page_name2.htm
...
}

yes, location is usually enough, but sometimes, depending on the browser it requires the location.href
please check FAQ183-874 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top