Forum Moderators: open
I have a problem that i hope someone here can help me with:
I have some links on my index page. I want those links to open another page and load the link into an iframe on that page.
I hope you can understand what i want to achieve.
Regards
Pixelmeister
<Sorry, no personal URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 4:17 pm (utc) on Oct. 17, 2004]
If that is the situation, you will need to create a different version of the parent document for each link, so you can use a different src attribute in the <iframe> tag. You can either do that two ways
1. Have several different parent pages (the 'pure' html solution)
2. Have one new parent page, and then use javascript document.write() to catch a variable that you pass and write the iframe src= attribute.
NOTE: The javascript logic would be very much like this post about regular frames:
Force Many Pages Into Frames [webmasterworld.com] (Message #21)
Regards
pixelmeister