linking to iframes

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Cyphonic
Forum Newbie
Posts: 13
Joined: Sun Aug 18, 2002 1:29 pm

linking to iframes

Post 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?
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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
Post Reply