View Full Version : Example of one click, two iframe loads

02-22-2003, 01:10 PM
I would like to load two iFrames with one click. Anyone got an example of the JavaScript needed? Thanks in advance.

Mr J
02-22-2003, 03:37 PM
It all depends on your frame layout but say you have a frame name "Main" and a frame named "Head"

Something like:

<a href="page1.htm" target="main" onClick=parent.head.location.href="page2.htm">Load 2 Frames</a>

would do it

Quiet Storm
02-22-2003, 08:35 PM
You can check out my site for an example MrJ showed above: