PDA

View Full Version : I-Frames


Winter-Wish
1-18-04, 03:25 PM
Let's say you have index.html, for instance. To the right are a series of links. To the left is an i-frame with a bit of information. Now, if you click on Link A, would it be possible to open that link in the i-frame while keeping index.html as index.html (and not moving to, say, index2.html where this link would be opened in the i-frame)?

bubbac
1-18-04, 04:28 PM
if i remember correctly, try using name="iframe_name" to title the iframe, and target="iframe_name" in the links.....the "iframe_name" needs to be the same for it to work.

if you need any furter help, visit: http://rdmerks.home.mchsi.com/iframe.html

(jj)
1-18-04, 04:30 PM
Should be able to do it by adding a "name" attribute to the <iframe> tag and using that name in the "target" attribute of the <a>nchor tag you use to load the new page into the <iframe>. Similar to using standard frames.

<iframe src="somepage.html" border="0" name="myIFrame"></iframe>

Your link would look something like this:

<a href="newpage.html" target="myIFrame">Load the new page.</a>

bubbac
1-18-04, 04:34 PM
if i remember correctly, try using name="iframe_name" to title the iframe, and target="iframe_name" in the links.....the "iframe_name" needs to be the same for it to work.

if you need any furter help, visit: http://rdmerks.home.mchsi.com/iframe.html

Winter-Wish
1-18-04, 04:46 PM
Thank you so much! You just saved my layout idea. :D