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="page_name.htm" target="frame_name">link</a> this will display page_name.htm in the frame "frame_name" (provided the current frame and frame_name are at the same "level"
the way to update n frames at the same time :
<a href="javascript:load_frames()">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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.