View Full Version : iframes: targetting multiple iframes externally

Jan 21st, 2007, 08:42 AM
Is this even possible?

I have a main page that has no iframes. I have a "watch" section with videos w/ 2 iframes: video and shows.

I want to link directly to a video in the "watch" section from the main page.


Jan 21st, 2007, 10:19 AM
I've never done this, but I assume it's the same as framesets. In which case:

Link to video:
<a href="link_to_watch_video_page" target="watch">Watch Video</a>

<iframe name="watch"></iframe>

Make sure the target in the anchor matches the name of the iframe. That SHOULD work.

Jan 21st, 2007, 12:14 PM
well no that wouldn't work.

basically i want to have a link on the main page. this page has NO iframes in it. the link leads to a page (watch page) WITH iframes. I want to specify which pages to load in which iframe FROM the main page.

Jan 21st, 2007, 01:28 PM
Can't you just link with .php?,

Jan 21st, 2007, 10:07 PM
can you elaborate more? thanks

Jan 21st, 2007, 10:31 PM
You'll need to use javascript to load more than one page at a time. Something like this should work

<a href="link_to_videos" target="videos" onclick="window.frames['shows'].location = 'link_to_shows'>Watch</a>