I'm using an iframe on a site that I'm developing and I have it working fine except for one thing. When you first go into the site, the iframe is blank (as it is in DHTML Menu sample number 11 Opening Windows & Frames)
Here is the script:
<script>
function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}
</script>
How do I seed iFrameId and winURL with inital values so that the iframe is populated when initially going into the site.
Iframes have a value in themselves to specify their URL. When you put them in your page you can specify it then. All the function is then doing is taking that value and changing it. Heres the code for an iframe to initially come up on your page with google in it, then your menu can update it as usual.