PDA

View Full Version : Controlling Iframes with links in parent page (CS4)


StefStuff
06-29-2009, 02:23 PM
OK, here's what i'm trying to do: I have a number of "calculators" for a home loan company, and I want them to show up in an Iframe (when the corresponding link is clicked) on the page instead of opening in a new window. How does one go about this?
Help a Dreamweaver damsel in distress? :(

StefStuff
06-29-2009, 03:53 PM
Could someone at least let me know whether or not this is possible?

StefStuff
06-29-2009, 04:16 PM
Nevermind, I got my answer elsewhere. For anyone who wants to know:

When you declare your iframe, be sure to give it a name, like this:
<iframe src="somepage.html" name="myframe"></iframe>

Then in your link itself, give it a target of the name of the iframe:
<a href="PageToAppearInTheIframe.html" target="myframe">Link Text</a>

or simply define the frame in the target box while the link text/image is selected.

domedia
06-30-2009, 01:51 PM
Nice,thanks for sharing! :)