PDA

View Full Version : Help on opening multiple iframe windows


Kaze
08-26-2005, 07:16 AM
okay what I am trying to do is make one link open up 3 different pages in 3 different iframes, is this possable?

my other idea for this is, is there a way to have one link open up one page in an iframe and then that page auto loads the other two pages in the other two iframes.

if any of the two is possable or you have your own suggestion for that, that would be awesome.

thanks for all your help

jscheuer1
08-26-2005, 01:14 PM
Both are possible. There are several ways in javascript to change the page displayed in an iframe. There is one in html. Combining any 3 - the same or different one(s) may be used 3 or more times in javascript, the html method can only be used once at a given time but, can be combined with javascript method(s), should be able to create the effect you want. Here is one example:
<a href="page1.htm" target="frame1" onclick="window.frame2.location.href='page2.htm';window.frame3.location.href='page3.htm';return true;">Link Text</a>Now, all you need are 3 iframes and the three pages. Each iframe must be named. In this example the names are frame1, frame2 and frame3, ex:
<iframe name="frame1" src=""></iframe>You can add whatever other attributes you like to the iframes.

Kaze
08-26-2005, 07:18 PM
thanks that worked ^^