Page 1 of 1

html iframe question

Posted: Tue Jul 17, 2007 6:53 pm
by suthie
how can i make the page change from within an iframe? basically i have my page and in it i have an iframe ("theframe")
it looks like this:

Code: Select all

//////////////////////////////////x//
// this is the whole window         //
//                                 //
//--------------------------------//
//- in here is the iframe       - //
//-    "theframe"                - //
//-                              -//
//-                              -//
//-                              -//
//---------------------------------//
/////////////////////////////////////
i know that to make just the frame go to a different page, i can use

Code: Select all

<a href="page" target="theframe">link</a>
but how do a make a link that is within "theframe" target the parent window?

Posted: Wed Jul 18, 2007 11:03 am
by pickle
I'd guess:

Code: Select all

<a href = "mainpage.html" target = "_top">

Posted: Thu Jul 19, 2007 4:17 pm
by suthie
awesome! it works thanks