View Full Version : info from iframe 1 to iframe 2
buzzby365
Tue 8th Jun '04, 1:25pm
i have an index.htm that has 2 iframes. one iframe has a menu and stuff and the other iframe is where the info is to be displayed. i want to have the menu attributes that are inside iframe1 display the relative information inside iframe2. can someone tell me how this is possible. i have seen code where the menu links to info inside an iframe but the menu itself wasnt in an iframe. this is not what i want.
AmericanPsych0
Tue 8th Jun '04, 8:28pm
So you're saying if iframe1 had a link to, say, cars.html, and someone clicked that link, you would want it (cars.html) to open in iframe2? If so:
Give a value to the name attribute within the iframe tag.
<iframe name="bob">...</iframe>
Then you have one of two choices:
1) Give a value for the target attribute in each link (which is, in this case, bob).
<a href="cars.html" target="bob">...</a>
2) Set the default target to open in the iframe (include this between the <head> tags).
<base target="bob" />
I by no means know much HTML, but I do like inline frames. :)
vBulletin® v3.8.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.