View Full Version : Loading Pages into Two Frames with One Click

Frank Fuqua
05-30-2004, 12:58 AM
I am trying to program a single link click to load a new page into each of two frames. Half of it works, but the other half does not. My code is:

<A HREF="javascript:location='Modified_Contents.html'
;parent.contents.location=’Modified_Contents.html'"> Bracelets</A>

One frame is labeled “Contents”, and the other is labeled “Mainpage”.

The table of contents which initially opens in the “Contents” frame includes a “Bracelets” link. When this link is activated, the Bracelets page is to appear in the “Mainpage” frame and, simultaneously, a new (and somewhat different) table of contents is to be loaded into the Contents frame.

When the Bracelets link is clicked, the new table of contents loads fine, but the Bracelets page does not load.

It is probably obvious that I have no idea what I am doing. Any help in solving this misfire will be appreciated.

Thanks in advance,


Mr J
05-30-2004, 06:43 PM
I notice you say

One frame is labeled “Contents”, and the other is labeled “Mainpage”.

yet reference


Javascript is case sensitive, you should always use lowercase to save confusion, could this be the reason.

also your link should look like this

<A HREF="Modified_Contents.html" onclick="parent.mainpage.location=’Bracelets.html'"> Bracelets</A>

Check your capitals.

Frank Fuqua
06-08-2004, 02:21 AM
Thank you for your response. You were spot on. I was suffering from inattention to case sensitivity.