Page 1 of 1

linking to iframes

Posted: Tue Jun 17, 2003 5:55 pm
by Cyphonic
Yeah... I know I'm a noob.. And this is for sure a very noobish question.. :oops:

I have an iframe called "menu" with lotsa links in it.. I want these links to open in an iframe called "content" instead of loading in the whole page.. How can I do this?

Posted: Fri Jun 20, 2003 3:25 pm
by phpScott
took me awhile to get that one as well. One IFRAME updating another IFRAME
try this code in your first frame that is going to update the second iframe.

Code: Select all

<script language = "javaScript">
	updatePage=parent.document.getElementById('updateFrame');
	srce="updatePhotoInfo.php?picName="+picName;
	updatePage.src=srce;
</script>
phpScott