Click to See Complete Forum and Search --> : iframes- link targets


coalduststar
08-27-2004, 07:18 AM
I can't get my navigation bar to load pages into my iframe- it works on one page but not on another???!!

<tr>
<td width='15%' valign="top">&nbsp;
</td>
<td valign="top" width='81%'><a href='devfund.htm' target='scrl'>DevFund</a></td>

</tr>

I also tried scripting it in javascript and it just throws up the link in a new page- does anyone know what might be causing this???

Mr J
08-27-2004, 08:44 AM
Please try the following


<a href="#null" onclick="document.getElementById('scrl').src='devfund.htm' ">DevFund</a>

coalduststar
08-27-2004, 08:52 AM
cheers- i sorted that out grand
one more question tho- do iframes have a limit of what they can contain?? and is there an attribute that will make the loading page shrink to fit within the confines of the iframe??

PhillMc
08-27-2004, 01:37 PM
No. As far as I know there is no element that will "shrink" content to fit. Iframes will scroll if the content is larger than the frame unless you turn off scrolling, but then the 'overage' content will be hidden.